Struct discord::model::User [] [src]

pub struct User {
    pub id: UserId,
    pub name: String,
    pub discriminator: String,
    pub avatar: Option<String>,
    pub bot: bool,
}

Broadly-applicable user information

Fields

id
name
discriminator
avatar
bot

Methods

impl User
[src]

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

Trait Implementations

Derived Implementations

impl Clone for User
[src]

fn clone(&self) -> User

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

impl Debug for User
[src]

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

Formats the value using the given formatter.