///! User information ///! ///! @author Pierre Hubert pub type UserID = i64; #[derive(Debug, PartialEq)] pub enum UserPageStatus { OPEN, PUBLIC, PRIVATE } #[derive(Debug, PartialEq)] #[allow(non_camel_case_types)] pub enum AccountImageVisibility { FRIENDS, COMUNIC_USERS, EVERYONE } #[derive(Debug)] pub struct User { pub id: UserID, pub email: String, pub password: String, pub first_name: String, pub last_name: String, pub status: UserPageStatus, pub virtual_directory: Option, pub account_image_path: Option, pub account_image_visibility: AccountImageVisibility, }