Struct slack::Attachment
[−]
pub struct Attachment { pub fallback: Option<String>, pub color: Option<String>, pub pretext: Option<String>, pub author_name: Option<String>, pub author_link: Option<String>, pub author_icon: Option<String>, pub title: Option<String>, pub title_link: Option<String>, pub text: Option<String>, pub fields: Option<Vec<AttachmentField>>, pub image_url: Option<String>, pub thumb_url: Option<String>, }
The Slack Attachment
object as found in
richly-formatted messages.
Fields
fallback: Option<String>
color: Option<String>
pretext: Option<String>
title: Option<String>
title_link: Option<String>
text: Option<String>
fields: Option<Vec<AttachmentField>>
image_url: Option<String>
thumb_url: Option<String>
Trait Implementations
impl Encodable for Attachment
impl Decodable for Attachment
fn decode<__D>(__arg_0: &mut __D) -> Result<Attachment, __D::Error> where __D: Decoder
impl Debug for Attachment
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for Attachment
fn clone(&self) -> Attachment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more