[][src]Struct discord_bots_org::model::User

pub struct User {
    pub admin: bool,
    pub avatar: Option<String>,
    pub banner: Option<String>,
    pub bio: Option<String>,
    pub certified_dev: bool,
    pub colour: Option<String>,
    pub def_avatar: Option<String>,
    pub discriminator: String,
    pub id: String,
    pub mod_: bool,
    pub social: Social,
    pub supporter: bool,
    pub username: String,
    pub web_mod: bool,
}

Information about a user.

Fields

admin: bool

The admin status of the user.

avatar: Option<String>

The avatar hash of the user's avatar.

banner: Option<String>

The banner image URL of the user.

bio: Option<String>

The bio of the user.

certified_dev: bool

The certified status of the user.

colour: Option<String>

The custom hex colour of the user.

def_avatar: Option<String>

The CDN hash of the user's avatar if the user has none.

discriminator: String

The discriminator of the user.

id: String

The ID of the user.

mod_: bool

The mod status of the user.

social: Social

The user's social information.

supporter: bool

Whether the use is a support of the website.

username: String

The username of the user.

web_mod: bool

The website moderator status of the user.

Trait Implementations

impl Clone for User
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for User
[src]

impl Serialize for User
[src]

impl<'de> Deserialize<'de> for User
[src]

Auto Trait Implementations

impl Send for User

impl Sync for User

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T