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

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

Broadly-applicable user information

Fields

id: UserId name: String discriminator: String avatar: Option<String>

Methods

impl User
[src]

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

Trait 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.