pub struct PayloadBuilder { /* private fields */ }
Expand description

PayloadBuilder is used to build a Payload

Implementations

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

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.