pub struct PartialMessage {
pub id: Option<MessageId>,
pub nonce: Option<String>,
pub channel: Option<ChannelId>,
pub author: Option<UserId>,
pub content: Option<MessageContent>,
pub attachments: Option<Vec<Attachment>>,
pub edited: Option<Date>,
pub embeds: Option<Vec<Embed>>,
pub mentions: Option<Vec<UserId>>,
pub replies: Option<Vec<MessageId>>,
}Expand description
A message where all the fields are optional, and can be treated as a patch
that can be applied to a Message.
Fields§
§id: Option<MessageId>§nonce: Option<String>§channel: Option<ChannelId>§content: Option<MessageContent>§attachments: Option<Vec<Attachment>>§edited: Option<Date>§embeds: Option<Vec<Embed>>§mentions: Option<Vec<UserId>>§replies: Option<Vec<MessageId>>Implementations§
Trait Implementations§
Source§impl Clone for PartialMessage
impl Clone for PartialMessage
Source§fn clone(&self) -> PartialMessage
fn clone(&self) -> PartialMessage
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 PartialMessage
impl Debug for PartialMessage
Source§impl<'de> Deserialize<'de> for PartialMessage
impl<'de> Deserialize<'de> for PartialMessage
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 Hash for PartialMessage
impl Hash for PartialMessage
Source§impl Ord for PartialMessage
impl Ord for PartialMessage
Source§fn cmp(&self, other: &PartialMessage) -> Ordering
fn cmp(&self, other: &PartialMessage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PartialMessage
impl PartialEq for PartialMessage
Source§impl PartialOrd for PartialMessage
impl PartialOrd for PartialMessage
Source§impl Serialize for PartialMessage
impl Serialize for PartialMessage
impl Eq for PartialMessage
impl StructuralPartialEq for PartialMessage
Auto Trait Implementations§
impl Freeze for PartialMessage
impl RefUnwindSafe for PartialMessage
impl Send for PartialMessage
impl Sync for PartialMessage
impl Unpin for PartialMessage
impl UnwindSafe for PartialMessage
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