Struct disint_model::interaction::User[][src]

pub struct User { /* fields omitted */ }

Implementations

impl User[src]

pub fn id(&self) -> u64[src]

pub fn username(&self) -> &str[src]

pub fn discriminator(&self) -> &str[src]

pub fn username_and_discriminator(&self) -> String[src]

pub fn avatar(&self) -> Option<&str>[src]

pub fn cdn_avatar_path(&self) -> String[src]

pub fn is_bot(&self) -> bool[src]

pub fn is_system(&self) -> bool[src]

pub fn is_mfa_enabled(&self) -> bool[src]

Trait Implementations

impl Debug for User[src]

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

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

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