1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 23:39:22 +00:00
comunicapiv3/src/data/account_export.rs

21 lines
611 B
Rust
Raw Normal View History

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
}