[][src]Struct automate::gateway::Message

pub struct Message {
    pub id: Snowflake,
    pub channel_id: Snowflake,
    pub guild_id: Option<Snowflake>,
    pub author: User,
    pub member: Option<PartialGuildMember>,
    pub content: String,
    pub timestamp: String,
    pub edited_timestamp: Nullable<String>,
    pub tts: bool,
    pub mention_everyone: bool,
    pub mentions: Vec<MentionnedUser>,
    pub mention_roles: Vec<Snowflake>,
    pub mention_channels: Option<Vec<ChannelMention>>,
    pub attachments: Vec<Attachment>,
    pub embeds: Vec<Embed>,
    pub reactions: Option<Vec<Reaction>>,
    pub nonce: Nullable<Snowflake>,
    pub pinned: bool,
    pub webhook_id: Option<Snowflake>,
    pub _type: MessageType,
    pub activity: Option<MessageActivity>,
    pub application: Option<MessageApplication>,
    pub message_reference: Option<MessageReference>,
    pub flags: Option<u32>,
}

Fields

id: Snowflakechannel_id: Snowflakeguild_id: Option<Snowflake>author: Usermember: Option<PartialGuildMember>content: Stringtimestamp: Stringedited_timestamp: Nullable<String>tts: boolmention_everyone: boolmentions: Vec<MentionnedUser>mention_roles: Vec<Snowflake>mention_channels: Option<Vec<ChannelMention>>attachments: Vec<Attachment>embeds: Vec<Embed>reactions: Option<Vec<Reaction>>nonce: Nullable<Snowflake>pinned: boolwebhook_id: Option<Snowflake>_type: MessageTypeactivity: Option<MessageActivity>application: Option<MessageApplication>message_reference: Option<MessageReference>flags: Option<u32>

Trait Implementations

impl FromJson for Message[src]

impl From<Message> for Snowflake[src]

impl Debug for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

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

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

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

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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