Struct robespierre_models::channel::PartialMessage [−][src]
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
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PartialMessage
impl Send for PartialMessage
impl Sync for PartialMessage
impl Unpin for PartialMessage
impl UnwindSafe for PartialMessage
Blanket Implementations
Mutably borrows from an owned value. Read more