2020-07-13 17:12:39 +00:00
|
|
|
//! # Export of all account's data
|
|
|
|
//!
|
|
|
|
//! @author Pierre Hubert
|
|
|
|
|
|
|
|
use crate::data::comment::Comment;
|
2020-07-14 05:54:40 +00:00
|
|
|
use crate::data::conversation_message::ConversationMessage;
|
|
|
|
use crate::data::movie::Movie;
|
2020-07-13 17:12:39 +00:00
|
|
|
use crate::data::post::Post;
|
2020-07-13 17:38:51 +00:00
|
|
|
use crate::data::survey_response::SurveyResponse;
|
2020-07-13 17:12:39 +00:00
|
|
|
use crate::data::user::User;
|
2020-07-13 17:26:19 +00:00
|
|
|
use crate::data::user_like::UserLike;
|
2020-07-13 17:12:39 +00:00
|
|
|
|
|
|
|
pub struct AccountExport {
|
|
|
|
pub user: User,
|
|
|
|
pub posts: Vec<Post>,
|
|
|
|
pub comments: Vec<Comment>,
|
2020-07-13 17:26:19 +00:00
|
|
|
pub likes: Vec<UserLike>,
|
2020-07-13 17:38:51 +00:00
|
|
|
pub survey_responses: Vec<SurveyResponse>,
|
2020-07-14 05:48:05 +00:00
|
|
|
pub movies: Vec<Movie>,
|
2020-07-14 05:54:40 +00:00
|
|
|
pub all_conversation_messages: Vec<ConversationMessage>,
|
2020-07-13 17:12:39 +00:00
|
|
|
}
|