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.
The admin status of the user.
The avatar hash of the user's avatar.
The banner image URL of the user.
The certified status of the user.
The custom hex colour of the user.
The CDN hash of the user's avatar if the user has none.
The discriminator of the user.
The mod status of the user.
The user's social information.
Whether the use is a support of the website.
The username of the user.
The website moderator status of the user.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more