Struct twilight_model::channel::message::Mention [−][src]
pub struct Mention { pub avatar: Option<String>, pub bot: bool, pub discriminator: String, pub id: UserId, pub member: Option<PartialMember>, pub name: String, pub public_flags: UserFlags, }
Expand description
Mention of a user in a message.
Fields
avatar: Option<String>
Hash of the user’s avatar, if any.
bot: bool
Whether the user is a bot.
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.
id: UserId
Unique ID of the user.
member: Option<PartialMember>
Member object for the user in the guild, if available.
name: String
Username of the user.
public_flags: UserFlags
Public flags on the user’s account.
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 Mention
impl UnwindSafe for Mention
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more