Struct discord_flows::model::MessageUpdateEvent
source · pub struct MessageUpdateEvent {Show 22 fields
pub id: MessageId,
pub channel_id: ChannelId,
pub author: Option<User>,
pub content: Option<String>,
pub timestamp: Option<Timestamp>,
pub edited_timestamp: Option<Timestamp>,
pub tts: Option<bool>,
pub mention_everyone: Option<bool>,
pub mentions: Option<Vec<User, Global>>,
pub mention_roles: Option<Vec<RoleId, Global>>,
pub mention_channels: Option<Vec<ChannelMention, Global>>,
pub attachments: Option<Vec<Attachment, Global>>,
pub embeds: Option<Vec<Embed, Global>>,
pub reactions: Option<Vec<MessageReaction, Global>>,
pub nonce: Option<String>,
pub pinned: Option<bool>,
pub kind: Option<MessageType>,
pub flags: Option<MessageFlags>,
pub components: Option<Vec<ActionRow, Global>>,
pub stickers: Option<Vec<StickerItem, Global>>,
pub sticker_items: Option<Vec<StickerItem, Global>>,
pub guild_id: Option<GuildId>,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: MessageId§channel_id: ChannelId§content: Option<String>§timestamp: Option<Timestamp>§edited_timestamp: Option<Timestamp>§tts: Option<bool>§mention_everyone: Option<bool>§mentions: Option<Vec<User, Global>>§mention_roles: Option<Vec<RoleId, Global>>§mention_channels: Option<Vec<ChannelMention, Global>>§attachments: Option<Vec<Attachment, Global>>§embeds: Option<Vec<Embed, Global>>§reactions: Option<Vec<MessageReaction, Global>>§nonce: Option<String>§pinned: Option<bool>§kind: Option<MessageType>§flags: Option<MessageFlags>§components: Option<Vec<ActionRow, Global>>§stickers: Option<Vec<StickerItem, Global>>👎Deprecated: deprecated by Discord
§sticker_items: Option<Vec<StickerItem, Global>>§guild_id: Option<GuildId>Trait Implementations§
source§impl Clone for MessageUpdateEvent
impl Clone for MessageUpdateEvent
source§fn clone(&self) -> MessageUpdateEvent
fn clone(&self) -> MessageUpdateEvent
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 MessageUpdateEvent
impl Debug for MessageUpdateEvent
source§impl<'de> Deserialize<'de> for MessageUpdateEvent
impl<'de> Deserialize<'de> for MessageUpdateEvent
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MessageUpdateEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MessageUpdateEvent, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for MessageUpdateEvent
impl Serialize for MessageUpdateEvent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MessageUpdateEvent
impl Send for MessageUpdateEvent
impl Sync for MessageUpdateEvent
impl Unpin for MessageUpdateEvent
impl UnwindSafe for MessageUpdateEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more