Struct slack_hook::PayloadBuilder[][src]

pub struct PayloadBuilder { /* fields omitted */ }

PayloadBuilder is used to build a Payload

Methods

impl PayloadBuilder
[src]

Make a new PayloadBuilder

Set the text

Set the channel

Set the username

Set the icon_emoji

Set the icon_url

Set the attachments

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.

Attempt to build the Payload

Trait Implementations

impl Debug for PayloadBuilder
[src]

Formats the value using the given formatter. Read more

impl Default for PayloadBuilder
[src]

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

Auto Trait Implementations