Struct twilight_model::user::User [−][src]
pub struct User {}Show fields
pub avatar: Option<String>, pub bot: bool, pub discriminator: String, pub email: Option<String>, pub flags: Option<UserFlags>, pub id: UserId, pub locale: Option<String>, pub mfa_enabled: Option<bool>, pub name: String, pub premium_type: Option<PremiumType>, pub public_flags: Option<UserFlags>, pub system: Option<bool>, pub verified: Option<bool>,
Fields
avatar: Option<String>
bot: bool
discriminator: String
Discriminator used to differentiate people with the same username.
serde
The discriminator field can be deserialized from either a string or an integer. The field will always serialize into a string due to that being the type Discord’s API uses.
email: Option<String>
flags: Option<UserFlags>
id: UserId
locale: Option<String>
mfa_enabled: Option<bool>
name: String
public_flags: Option<UserFlags>
system: Option<bool>
verified: Option<bool>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for User
impl UnwindSafe for User
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more