Expand description
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
Modules§
- blocking
blocking
- A blocking slack client
Structs§
- Action
- Actions are defined as an array, and values contained within it will be displayed with the message.
- Attachment
- Slack allows for attachments to be added to messages. See https://api.slack.com/docs/attachments for more information.
- Attachment
Builder AttachmentBuilder
is used to build aAttachment
- Field
- Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.
- HexColor
- A
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
- Payload
Builder PayloadBuilder
is used to build aPayload
- Slack
- Handles sending messages to slack
- Slack
Link - Representation of a link sent in slack
- Slack
Text - Representation of any text sent through slack the text must be processed to escape specific characters
- Slack
Time - Slack timestamp
- Slack
User Link - Representation of a user id link sent in slack
Enums§
- Error
- The all-encompassing error type for the
slack-hook
crate - Parse
- Change how messages are treated.
- Section
- Sections define parts of an attachment.
- Slack
Color - Default slack colors built-in to the API See: https://api.slack.com/docs/attachments
- Slack
Text Content - Enum used for constructing a text field having both
SlackText
(s) andSlackLink
(s). The variants should be used together in aVec
on any function having aInto<SlackText>
trait bound. The combined text will be space-separated.
Type Aliases§
- Result
- An alias for a
Result
with aslack_hook::Error