pub struct Message {
pub id: MessageId,
pub nonce: Option<String>,
pub channel: ChannelId,
pub author: UserId,
pub content: MessageContent,
pub attachments: Vec<Attachment>,
pub edited: Option<Date>,
pub embeds: Vec<Embed>,
pub mentions: Vec<UserId>,
pub replies: Vec<MessageId>,
}Expand description
A message
Fields§
§id: MessageId§nonce: Option<String>§channel: ChannelId§content: MessageContent§attachments: Vec<Attachment>§edited: Option<Date>§embeds: Vec<Embed>§mentions: Vec<UserId>§replies: Vec<MessageId>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Ord for Message
impl Ord for Message
Source§impl PartialOrd for Message
impl PartialOrd for Message
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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