Expand description
§sfr-types: The crate has shared types in slack-framework-rs.
The sfr-types provides types shared by slack-framework-rs.
sfr-types is the parts of slack-framework-rs.
See slack-framework-rs for details.
Structs§
- Actions
Block - Actions block.
- Attachments
- A JSON-based array of structured attachments, presented as a URL-encoded string.
- BlockId
- A unique identifier for a block.
- Button
Element - Button element.
- Chat
Post Message Request - The type that represents a request of
chat.postMessage. - Chat
Post Message Response - The type that represents a response of
chat.postMessage. - Confirm
Obect - The type that represents a confirmation dialog object.
- Context
Block - Context block.
- Divider
Block - Divider block.
- External
Id - The external unique ID for the file. in https://api.slack.com/reference/block-kit/blocks#file_fields.
- File
Block - File block.
- Files
Complete Upload External Request - The type that represents a request of
files.completeUploadExternal. - Files
Complete Upload External Request File - The type that represents a file ID and its corresponding (optional) title.
- Files
Complete Upload External Response - The type that represents a response of
files.completeUploadExternal. - Files
GetUpload UrlExternal Request - The type that represents a request of
files.getUploadURLExternal. - Files
GetUpload UrlExternal Response - The type that represents a response of
files.getUploadURLExternal. - Files
Info Request - The type that represents a request of
files.info. - Files
Info Response - The type that represents a response of
files.info. - Files
Remote AddRequest - The type that represents a request of
files.remote.add. - Files
Remote AddResponse - The type that represents a response of
files.remote.add. - Files
Upload Request - The type that represents a request of
files.upload. - Files
Upload Response - The type that represents a response of
files.upload. - Header
Block - Header block.
- Image
Block - Image block.
- Input
Block - Input block.
- Markdown
Text Object - A type that represents
mrkdwninTextObject. - Message
Payloads - Message payloads.
- Oauth
Redirect Query - The type that represents a query when redirected.
- Oauth
V2Access Request - The type that represents a request of
oauth.v2.access. - Oauth
V2Access Response - The type that represents a response of
oauth.v2.access. - Plain
Text Object - A type that represents
plain_textinTextObject. - Rich
Text Block - Rich text block.
- Rich
Text Element Broadcast - The following are the properties of the
broadcastobject type in theelementsarray. - Rich
Text Element Channel - The following are the properties of the
channelobject type in theelementsarray. - Rich
Text Element Color - The following are the properties of the
colorobject type in theelementsarray. - Rich
Text Element Date - The following are the properties of the
dateobject type in theelementsarray. - Rich
Text Element Emoji - The following are the properties of the
emojiobject type in theelementsarray. - Rich
Text Element Link - The following are the properties of the
linkobject type in theelementsarray. - Rich
Text Element Text - The following are the properties of the
textobject type in theelementsarray. - Rich
Text Element User - The following are the properties of the
userobject type in theelementsarray. - Rich
Text Element Usergroup - The following are the properties of the
usergroupobject type in theelementsarray. - Rich
Text List - List element:
rich_text_list. - Rich
Text Preformatted - Preformatted code block element:
rich_text_preformatted. - Rich
Text Quote - Quote element:
rich_text_quote. - Rich
Text Section - Section element:
rich_text_section. - Rich
Text Style - An object containing four boolean properties:
bold,italic,strike, andcode. - Rich
Text Style2 - An object of six optional boolean properties that dictate style:
bold,italic,strike,highlight,client_highlight, andunlink. - Section
Block - Section block.
- Slash
Command Body - The type that represents a request of a slash command.
Enums§
- ApiError
- The type that represents all erros in
sfr-slack-api. - Block
- The type that represents a block.
- Button
Style - The enumerated value that represents the button style.
- Chat
Post Message Content - The type that represents a selection of
ChatPostMessageRequest::content. - Core
Error - The type that represents all erros in
sfr-core. - Element
- The type that represents a block element.
- Error
- The type that represents all erros in
slack-framework-rs. - File
Block Source - A
sourcefield in File block. - Files
Upload Request Content - File contents via a POST variable.
- Layouts
- The type that represents a composition object.
- Rich
Text Element - Rich text element types.
- Rich
Text Element Broadcast Range - The range of the broadcast; value can be
here,channel, oreveryone. - Rich
Text List Style - The value of the
stylefield inRichTextList. - Rich
Text Object - An element in rich text block.
- Server
Error - The type that represents all erros in
sfr-server. - Slash
Command Response - The response type for slash command. https://api.slack.com/interactivity/slash-commands#responding_to_commands
- Text
Object - The type that represents a text object.