pub struct SlackAttachment {
pub fallback: Option<String>,
pub color: Option<String>,
pub pretext: Option<String>,
pub author_name: Option<String>,
pub author_link: Option<String>,
pub title: Option<String>,
pub title_link: Option<String>,
pub text: Option<String>,
pub fields: Vec<SlackField>,
pub footer: Option<String>,
pub ts: Option<i64>,
}Expand description
A Slack message attachment.
Fields§
§fallback: Option<String>Attachment fallback text.
color: Option<String>Attachment color (hex or named).
pretext: Option<String>Pretext shown above attachment.
Author name.
Author link.
title: Option<String>Attachment title.
title_link: Option<String>Title link.
text: Option<String>Main attachment text.
fields: Vec<SlackField>Attachment fields.
Footer text.
ts: Option<i64>Timestamp (Unix epoch).
Implementations§
Trait Implementations§
Source§impl Clone for SlackAttachment
impl Clone for SlackAttachment
Source§fn clone(&self) -> SlackAttachment
fn clone(&self) -> SlackAttachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackAttachment
impl Debug for SlackAttachment
Source§impl Default for SlackAttachment
impl Default for SlackAttachment
Source§fn default() -> SlackAttachment
fn default() -> SlackAttachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlackAttachment
impl<'de> Deserialize<'de> for SlackAttachment
Source§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 Freeze for SlackAttachment
impl RefUnwindSafe for SlackAttachment
impl Send for SlackAttachment
impl Sync for SlackAttachment
impl Unpin for SlackAttachment
impl UnsafeUnpin for SlackAttachment
impl UnwindSafe for SlackAttachment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more