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
impl<'de> Deserialize<'de> for User
[src]
impl<'de> Deserialize<'de> for User
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl StructuralEq for User
[src]
impl StructuralEq for User
[src]impl StructuralPartialEq for User
[src]
impl StructuralPartialEq for User
[src]Auto Trait Implementations
impl RefUnwindSafe for User
impl RefUnwindSafe for User
impl UnwindSafe for User
impl UnwindSafe for User
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]