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
id: UserId
avatar: Option<String>
bot: bool
discriminator: u16
email: Option<String>
mfa_enabled: bool
mobile: Option<bool>
name: String
verified: bool
Methods
impl CurrentUser
[src]
fn avatar_url(&self) -> Option<String>
Returns the formatted URL of the user's icon, if one exists.
Trait Implementations
impl Clone for CurrentUser
[src]
fn clone(&self) -> CurrentUser
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more