[][src]Struct slack_chat_api::MessageAttachment

pub struct MessageAttachment {
    pub blocks: Vec<MessageBlock>,
    pub author_icon: String,
    pub author_link: String,
    pub author_name: String,
    pub color: String,
    pub fallback: String,
    pub fields: Vec<MessageAttachmentField>,
    pub footer: String,
    pub footer_icon: String,
    pub image_url: String,
    pub pretext: String,
    pub text: String,
    pub thumb_url: String,
    pub title: String,
    pub title_link: String,
    pub ts: DateTime<Utc>,
}

A message attachment in Slack.

Docs: https://api.slack.com/messaging/composing/layouts#building-attachments

Fields

blocks: Vec<MessageBlock>author_icon: Stringauthor_link: Stringauthor_name: Stringcolor: Stringfallback: Stringfields: Vec<MessageAttachmentField>footer: Stringfooter_icon: Stringimage_url: Stringpretext: Stringtext: Stringthumb_url: Stringtitle: Stringtitle_link: Stringts: DateTime<Utc>

Trait Implementations

impl Debug for MessageAttachment[src]

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

impl Serialize for MessageAttachment[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, 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.