Crate slack_hook [] [src]

Library to send messages to slack rooms supports entire messaging API, including attachments and fields also support for built-in colors as well as any hex colors

Structs

Attachment

Slack allows for attachments to be added to messages. See https://api.slack.com/docs/attachments for more information.

Field

Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.

HexColor

The HexColor string can be one of:

Payload

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

Slack

Handles sending messages to slack

SlackError

main Slack library error

SlackLink

Representation of a link sent in slack

SlackText

Representation of any text sent through slack the text must be processed to escape specific characters

Enums

AttachmentTemplate

Attachment template to simplify constructing attachments for common use cases.

ErrorKind

Different kinds of errors handled

PayloadTemplate

Templates to support common payload use cases

SlackColor

Default slack colors built-in to the API See: https://api.slack.com/docs/attachments

Type Definitions

SlackResult

Result alias to save typing