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

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

Broadly-applicable user information

Fields

Methods

impl User
[src]

Return a Mention which will ping this user.

Returns the formatted URL of the user's icon.

Returns None if the user does not have an avatar.

Trait Implementations

impl Debug for User
[src]

Formats the value using the given formatter.

impl Clone for User
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more