[][src]Struct top_gg::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]

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

impl Unpin for User

impl UnwindSafe for User

impl RefUnwindSafe for User

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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