pub struct MessageUpdate {
pub id: Snowflake,
pub channel_id: Option<Snowflake>,
pub guild_id: Option<Snowflake>,
pub author: Option<User>,
pub content: Option<String>,
pub edited_timestamp: Option<String>,
pub embeds: Option<Vec<Embed>>,
pub attachments: Option<Vec<Attachment>>,
pub pinned: Option<bool>,
pub flags: Option<u64>,
}Expand description
Partial message data from an edit. Only changed fields are populated.
Fields§
§id: Snowflake§channel_id: Option<Snowflake>§guild_id: Option<Snowflake>§content: Option<String>§edited_timestamp: Option<String>§embeds: Option<Vec<Embed>>§attachments: Option<Vec<Attachment>>§pinned: Option<bool>§flags: Option<u64>Trait Implementations§
Source§impl Clone for MessageUpdate
impl Clone for MessageUpdate
Source§fn clone(&self) -> MessageUpdate
fn clone(&self) -> MessageUpdate
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 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
Auto Trait Implementations§
impl Freeze for MessageUpdate
impl RefUnwindSafe for MessageUpdate
impl Send for MessageUpdate
impl Sync for MessageUpdate
impl Unpin for MessageUpdate
impl UnsafeUnpin for MessageUpdate
impl UnwindSafe for MessageUpdate
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