[][src]Struct noob::events::Myself

pub struct Myself {
    pub id: Snowflake,
    pub username: String,
    pub discriminator: String,
    pub avatar: Option<String>,
    pub bot: bool,
    pub mfa_enabled: bool,
    pub verified: bool,
    pub email: Option<String>,
}

Data about the current user. (relevant Discord docs)

Fields

id: Snowflake

User ID

username: String

Username, not unique

discriminator: String

4-digit Discord tag

avatar: Option<String>

User's avatar hash

bot: bool

Whether this is a bot account

mfa_enabled: bool

Whether the account has MFA enabled

verified: bool

Whether the email address on this account has been verified

email: Option<String>

Email address

Trait Implementations

impl Debug for Myself[src]

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

impl Into<User> for Myself[src]

Auto Trait Implementations

impl RefUnwindSafe for Myself

impl Send for Myself

impl Sync for Myself

impl Unpin for Myself

impl UnwindSafe for Myself

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,