Struct slack_chat_api::MessageAttachment[][src]

pub struct MessageAttachment {
Show fields 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>,
}
Expand description

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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.