[][src]Struct twilight_model::user::CurrentUser

pub struct CurrentUser {
    pub avatar: Option<String>,
    pub bot: bool,
    pub discriminator: String,
    pub email: Option<String>,
    pub id: UserId,
    pub mfa_enabled: bool,
    pub name: String,
    pub verified: bool,
}

Fields

avatar: Option<String>bot: booldiscriminator: Stringemail: Option<String>id: UserIdmfa_enabled: boolname: Stringverified: bool

Trait Implementations

impl Clone for CurrentUser[src]

impl Debug for CurrentUser[src]

impl Default for CurrentUser[src]

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

impl Eq for CurrentUser[src]

impl Hash for CurrentUser[src]

impl PartialEq<CurrentUser> for CurrentUser[src]

impl Serialize for CurrentUser[src]

impl StructuralEq for CurrentUser[src]

impl StructuralPartialEq for CurrentUser[src]

Auto Trait Implementations

impl RefUnwindSafe for CurrentUser

impl Send for CurrentUser

impl Sync for CurrentUser

impl Unpin for CurrentUser

impl UnwindSafe for CurrentUser

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, 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.