[−][src]Struct slack_hook2::Payload
Payload to send to slack https://api.slack.com/incoming-webhooks https://api.slack.com/methods/chat.postMessage
Fields
text: Option<SlackText>
text to send
despite text
stated as required, it does not seem to be
channel: Option<String>
channel to send payload to note: if not provided, this will default to channel setup in slack
username: Option<String>
username override
icon_url: Option<Url>
specific url for icon
icon_emoji: Option<String>
emjoi for icon https://api.slack.com/methods/emoji.list
attachments: Option<Vec<Attachment>>
attachments to send
unfurl_links: Option<bool>
whether slack will try to fetch links and create an attachment https://api.slack.com/docs/unfurling
unfurl_media: Option<bool>
Pass false to disable unfurling of media content
link_names: Option<u8>
find and link channel names and usernames
parse: Option<Parse>
Change how messages are treated.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,