mirror of
https://github.com/tribufu/sdk-rust
synced 2025-06-15 10:44:18 +00:00
Update users.rs
This commit is contained in:
@ -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<NaiveDateTime>,
|
||||
}
|
||||
|
||||
#[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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user