Struct dasi::model::CurrentUser [] [src]

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

Information about the logged-in user

Fields

id
username
discriminator
avatar
email
verified
bot

Methods

impl CurrentUser

fn decode(value: Value) -> Result<CurrentUser>

Trait Implementations

Derived Implementations

impl Clone for CurrentUser

fn clone(&self) -> CurrentUser

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for CurrentUser

fn fmt(&self, __arg_0: &mut Formatter) -> Result