[][src]Struct dyscord::Message

pub struct Message {
    pub id: Snowflake,
    pub channel_id: Snowflake,
    pub guild_id: Option<Snowflake>,
    pub author: User,
    pub member: Option<GuildMember>,
    pub content: String,
    pub timestamp: TimeStamp,
    pub edited_timestamp: Option<TimeStamp>,
    pub tts: bool,
    pub mention_everyone: bool,
    pub mentions: Vec<Value>,
    pub mention_roles: Vec<Value>,
    pub mention_channels: Option<Vec<Value>>,
    pub attachments: Vec<Attachment>,
    pub embeds: Vec<MessageEmbed>,
    pub reactions: Option<Value>,
    pub nonce: Option<String>,
    pub pinned: bool,
    pub webhook_id: Option<Snowflake>,
    pub type: MessageType,
    pub activity: Option<Value>,
    pub application: Option<Value>,
    pub message_reference: Option<Value>,
    pub flags: Option<BitFlags<MessageFlags>>,
}

Fields

id: Snowflakechannel_id: Snowflakeguild_id: Option<Snowflake>author: Usermember: Option<GuildMember>content: Stringtimestamp: TimeStampedited_timestamp: Option<TimeStamp>tts: boolmention_everyone: boolmentions: Vec<Value>mention_roles: Vec<Value>mention_channels: Option<Vec<Value>>attachments: Vec<Attachment>embeds: Vec<MessageEmbed>reactions: Option<Value>nonce: Option<String>pinned: boolwebhook_id: Option<Snowflake>type: MessageTypeactivity: Option<Value>application: Option<Value>message_reference: Option<Value>flags: Option<BitFlags<MessageFlags>>

Trait Implementations

impl Debug for Message[src]

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

impl Serialize for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,