pub struct User {Show 14 fields
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,
}Expand description
Information about a user.
Fields§
§admin: boolThe admin status of the user.
avatar: Option<String>The avatar hash of the user’s avatar.
The banner image URL of the user.
bio: Option<String>The bio of the user.
certified_dev: boolThe 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: StringThe discriminator of the user.
id: StringThe ID of the user.
mod_: boolThe mod status of the user.
The user’s social information.
supporter: boolWhether the use is a support of the website.
username: StringThe username of the user.
web_mod: boolThe website moderator status of the user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more