Struct slack_hook::Payload[][src]

pub struct Payload {
    pub text: Option<SlackText>,
    pub channel: Option<String>,
    pub username: Option<String>,
    pub icon_url: Option<Url>,
    pub icon_emoji: Option<String>,
    pub attachments: Option<Vec<Attachment>>,
    pub unfurl_links: Option<bool>,
    pub unfurl_media: Option<bool>,
    pub link_names: Option<u8>,
    pub parse: Option<Parse>,
}

Payload to send to slack https://api.slack.com/incoming-webhooks https://api.slack.com/methods/chat.postMessage

Fields

text to send despite text stated as required, it does not seem to be

channel to send payload to note: if not provided, this will default to channel setup in slack

username override

specific url for icon

emjoi for icon https://api.slack.com/methods/emoji.list

attachments to send

whether slack will try to fetch links and create an attachment https://api.slack.com/docs/unfurling

Pass false to disable unfurling of media content

find and link channel names and usernames

Change how messages are treated.

Trait Implementations

impl Debug for Payload
[src]

Formats the value using the given formatter. Read more

impl Default for Payload
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Payload

impl Sync for Payload