Struct slack_hook3::PayloadBuilder[][src]

pub struct PayloadBuilder { /* fields omitted */ }
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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.