1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-07-13 02:52:49 +00:00

Get user page status

This commit is contained in:
2020-05-26 13:15:39 +02:00
parent be4d1befcc
commit eb3e6e9afa
3 changed files with 26 additions and 2 deletions
src

@ -4,6 +4,13 @@
pub type UserID = i64;
#[derive(Debug, PartialEq)]
pub enum UserPageStatus {
OPEN,
PUBLIC,
PRIVATE
}
#[derive(Debug)]
pub struct User {
pub id: UserID,
@ -11,4 +18,5 @@ pub struct User {
pub password: String,
pub first_name: String,
pub last_name: String,
pub status: UserPageStatus
}