Struct slack_chat_api::MessageAttachment [−][src]
pub struct MessageAttachment {Show 16 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: String,
}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: StringTrait 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 MessageAttachment
impl Send for MessageAttachment
impl Sync for MessageAttachment
impl Unpin for MessageAttachment
impl UnwindSafe for MessageAttachment
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more