1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-30 09:16:28 +00:00
comunicapiv3/src/data/account_export.rs

19 lines
490 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-14 05:48:05 +00:00
use crate::data::movie::Movie;
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-13 17:12:39 +00:00
}