[][src]Struct twilight_model::channel::message::Mention

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,
}

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

impl Clone for Mention[src]

impl Debug for Mention[src]

impl<'de> Deserialize<'de> for Mention[src]

impl Eq for Mention[src]

impl Hash for Mention[src]

impl PartialEq<Mention> for Mention[src]

impl Serialize for Mention[src]

impl StructuralEq for Mention[src]

impl StructuralPartialEq for Mention[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.