Struct serenity::model::CurrentUser [] [src]

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

Information about the current user

Fields

Methods

impl CurrentUser
[src]

Returns the formatted URL of the user's icon, if one exists.

Trait Implementations

impl Clone for CurrentUser
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CurrentUser
[src]

Formats the value using the given formatter.