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
id: UserId
name: String
discriminator: u16
avatar: Option<String>
bot: bool
Methods
impl User
[src]
fn mention(&self) -> Mention
Return a Mention
which will ping this user.
fn avatar_url(&self) -> Option<String>
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]
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