Struct discord::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, pub mfa_enabled: bool, }
Information about the logged-in user
Fields
id | |
username | |
discriminator | |
avatar | |
email | |
verified | |
bot | |
mfa_enabled |
Methods
impl CurrentUser
[src]
fn decode(value: Value) -> Result<CurrentUser>
Trait Implementations
Derived 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