Struct spacetraders::responses::User [−][src]
pub struct User { pub id: String, pub username: String, pub picture: Option<String>, pub email: Option<String>, pub credits: i32, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, }
Expand description
The representation of a user
Fields
id: String
The users id
username: String
The users username
picture: Option<String>
The users picture
email: Option<String>
The users email
credits: i32
The users credits
created_at: DateTime<Utc>
The date the user was created
updated_at: DateTime<Utc>
The last time the user was updated
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for User
impl UnwindSafe for User
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more