Struct accord::raccord::DirectMessage[][src]

pub struct DirectMessage {
    pub id: u64,
    pub channel_id: u64,
    pub author: User,
    pub timestamp_created: String,
    pub timestamp_edited: Option<String>,
    pub kind: MessageType,
    pub content: String,
    pub attachments: Vec<Attachment>,
    pub embeds: Vec<Embed>,
    pub reactions: Vec<MessageReaction>,
    pub application: Option<MessageApplication>,
    pub flags: Vec<MessageFlag>,
}

Fields

id: u64channel_id: u64author: Usertimestamp_created: Stringtimestamp_edited: Option<String>kind: MessageTypecontent: Stringattachments: Vec<Attachment>embeds: Vec<Embed>reactions: Vec<MessageReaction>application: Option<MessageApplication>flags: Vec<MessageFlag>

Trait Implementations

impl Clone for DirectMessage[src]

impl Debug for DirectMessage[src]

impl<'de> Deserialize<'de> for DirectMessage[src]

impl From<&'_ Message> for DirectMessage[src]

impl Sendable for DirectMessage[src]

impl Serialize for DirectMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]