pub struct User {
pub id: u64,
pub name: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub display_name: Option<String>,
pub email: Option<String>,
pub location: Option<String>,
pub description: Option<String>,
pub avatar_url: Option<String>,
pub premium: Option<bool>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
User information
Fields§
§id: u64User ID
name: Option<String>User name (full name or display name)
first_name: Option<String>First name
last_name: Option<String>Last name
display_name: Option<String>Display name
email: Option<String>User email
location: Option<String>User location
description: Option<String>User description/bio
avatar_url: Option<String>Avatar URL
Whether the user has a premium account
created_at: Option<String>Account creation timestamp
updated_at: Option<String>Account updated timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more