[][src]Struct licoricedev::models::user::User

pub struct User {
    pub id: String,
    pub username: String,
    pub closed: Option<bool>,
    pub online: bool,
    pub perfs: HashMap<PerfType, UserPerf>,
    pub created_at: DateTime<Utc>,
    pub disabled: Option<bool>,
    pub engine: Option<bool>,
    pub booster: Option<bool>,
    pub profile: Option<UserProfile>,
    pub seen_at: DateTime<Utc>,
    pub patron: Option<bool>,
    pub play_time: UserPlaytime,
    pub language: Option<String>,
    pub title: Option<String>,
    pub url: Option<String>,
    pub playing: Option<String>,
    pub nb_following: Option<u32>,
    pub nb_followers: Option<u32>,
    pub completion_rate: Option<u8>,
    pub count: Option<UserCount>,
    pub streaming: Option<bool>,
    pub followable: Option<bool>,
    pub following: Option<bool>,
    pub blocking: Option<bool>,
    pub follows_you: Option<bool>,
}

The all inclusive user object

Fields

id: Stringusername: Stringclosed: Option<bool>online: boolperfs: HashMap<PerfType, UserPerf>created_at: DateTime<Utc>disabled: Option<bool>engine: Option<bool>booster: Option<bool>profile: Option<UserProfile>seen_at: DateTime<Utc>patron: Option<bool>play_time: UserPlaytimelanguage: Option<String>title: Option<String>url: Option<String>playing: Option<String>nb_following: Option<u32>nb_followers: Option<u32>completion_rate: Option<u8>count: Option<UserCount>streaming: Option<bool>followable: Option<bool>following: Option<bool>blocking: Option<bool>follows_you: Option<bool>

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl<'de> Deserialize<'de> for User[src]

impl Serialize for User[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.