diff --git a/src/types/users.rs b/src/types/users.rs index 599bf66..f8a9cc3 100644 --- a/src/types/users.rs +++ b/src/types/users.rs @@ -15,7 +15,7 @@ pub enum UserType { #[serde_as] #[derive(Debug, Clone, Serialize, Deserialize)] -pub struct User { +pub struct Profile { #[serde_as(as = "DisplayFromStr")] pub id: u64, pub uuid: String, @@ -39,3 +39,17 @@ pub struct User { pub created: NaiveDateTime, pub updated: Option, } + +#[serde_as] +#[derive(Debug, Serialize, Deserialize)] +pub struct MiniProfile { + #[serde_as(as = "DisplayFromStr")] + pub id: u64, + pub uuid: String, + pub name: String, + pub display_name: String, + #[serde(rename = "type")] + pub kind: UserType, + pub verified: bool, + pub photo_url: String, +}