Struct twilight_model::gateway::payload::incoming::MessageUpdate
source · pub struct MessageUpdate {Show 15 fields
pub attachments: Option<Vec<Attachment>>,
pub author: Option<User>,
pub channel_id: Id<ChannelMarker>,
pub content: Option<String>,
pub edited_timestamp: Option<Timestamp>,
pub embeds: Option<Vec<Embed>>,
pub guild_id: Option<Id<GuildMarker>>,
pub id: Id<MessageMarker>,
pub kind: Option<MessageType>,
pub mention_everyone: Option<bool>,
pub mention_roles: Option<Vec<Id<RoleMarker>>>,
pub mentions: Option<Vec<Mention>>,
pub pinned: Option<bool>,
pub timestamp: Option<Timestamp>,
pub tts: Option<bool>,
}
Fields§
§attachments: Option<Vec<Attachment>>
List of attachments.
Refer to the documentation for Message::attachments
for caveats with
receiving the attachments of messages.
channel_id: Id<ChannelMarker>
§content: Option<String>
Content of the message.
Refer to the documentation for Message::content
for caveats with
receiving the content of messages.
edited_timestamp: Option<Timestamp>
§embeds: Option<Vec<Embed>>
List of embeds.
Refer to the documentation for Message::embeds
for caveats with
receiving the embeds of messages.
guild_id: Option<Id<GuildMarker>>
§id: Id<MessageMarker>
§kind: Option<MessageType>
§mention_everyone: Option<bool>
§mention_roles: Option<Vec<Id<RoleMarker>>>
§mentions: Option<Vec<Mention>>
§pinned: Option<bool>
§timestamp: Option<Timestamp>
§tts: Option<bool>
Trait Implementations§
source§impl Clone for MessageUpdate
impl Clone for MessageUpdate
source§fn clone(&self) -> MessageUpdate
fn clone(&self) -> MessageUpdate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageUpdate
impl Debug for MessageUpdate
source§impl<'de> Deserialize<'de> for MessageUpdate
impl<'de> Deserialize<'de> for MessageUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MessageUpdate> for MessageUpdate
impl PartialEq<MessageUpdate> for MessageUpdate
source§fn eq(&self, other: &MessageUpdate) -> bool
fn eq(&self, other: &MessageUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.