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>color: Stringfallback: Stringfields: Vec<MessageAttachmentField>image_url: Stringpretext: Stringtext: Stringthumb_url: Stringtitle: Stringtitle_link: Stringts: DateTime<Utc>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
Auto Trait Implementations
impl RefUnwindSafe for MessageAttachmentimpl Send for MessageAttachmentimpl Sync for MessageAttachmentimpl Unpin for MessageAttachmentimpl UnwindSafe for MessageAttachment