#[non_exhaustive]pub struct MessageSnapshot {
pub content: String,
pub timestamp: Timestamp,
pub edited_timestamp: Option<Timestamp>,
pub mentions: Vec<User>,
pub mention_roles: Vec<RoleId>,
pub attachments: Vec<Attachment>,
pub embeds: Vec<Embed>,
pub kind: MessageType,
pub flags: Option<MessageFlags>,
pub components: Vec<ActionRow>,
pub sticker_items: Vec<StickerItem>,
}Expand description
For field documentation, see Message.
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.content: String§timestamp: Timestamp§edited_timestamp: Option<Timestamp>§mentions: Vec<User>§mention_roles: Vec<RoleId>§attachments: Vec<Attachment>§embeds: Vec<Embed>§kind: MessageType§flags: Option<MessageFlags>§components: Vec<ActionRow>§sticker_items: Vec<StickerItem>Trait Implementations§
Source§impl Clone for MessageSnapshot
impl Clone for MessageSnapshot
Source§fn clone(&self) -> MessageSnapshot
fn clone(&self) -> MessageSnapshot
Returns a duplicate 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 MessageSnapshot
impl Debug for MessageSnapshot
Source§impl<'de> Deserialize<'de> for MessageSnapshot
impl<'de> Deserialize<'de> for MessageSnapshot
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
Auto Trait Implementations§
impl Freeze for MessageSnapshot
impl RefUnwindSafe for MessageSnapshot
impl Send for MessageSnapshot
impl Sync for MessageSnapshot
impl Unpin for MessageSnapshot
impl UnwindSafe for MessageSnapshot
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