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

17 lines
431 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;
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-13 17:12:39 +00:00
}