mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-06 06:47:28 +00:00
Update users.rs
This commit is contained in:
parent
d29a5f6216
commit
0168cd14e7
1 changed files with 15 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue