Crate sfr_types

Source
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§

ActionsBlock
Actions block.
Attachments
A JSON-based array of structured attachments, presented as a URL-encoded string.
BlockId
A unique identifier for a block.
ButtonElement
Button element.
ChatPostMessageRequest
The type that represents a request of chat.postMessage.
ChatPostMessageResponse
The type that represents a response of chat.postMessage.
ConfirmObect
The type that represents a confirmation dialog object.
ContextBlock
Context block.
DividerBlock
Divider block.
ExternalId
The external unique ID for the file. in https://api.slack.com/reference/block-kit/blocks#file_fields.
FileBlock
File block.
FilesCompleteUploadExternalRequest
The type that represents a request of files.completeUploadExternal.
FilesCompleteUploadExternalRequestFile
The type that represents a file ID and its corresponding (optional) title.
FilesCompleteUploadExternalResponse
The type that represents a response of files.completeUploadExternal.
FilesGetUploadUrlExternalRequest
The type that represents a request of files.getUploadURLExternal.
FilesGetUploadUrlExternalResponse
The type that represents a response of files.getUploadURLExternal.
FilesInfoRequest
The type that represents a request of files.info.
FilesInfoResponse
The type that represents a response of files.info.
FilesRemoteAddRequest
The type that represents a request of files.remote.add.
FilesRemoteAddResponse
The type that represents a response of files.remote.add.
FilesUploadRequest
The type that represents a request of files.upload.
FilesUploadResponse
The type that represents a response of files.upload.
HeaderBlock
Header block.
ImageBlock
Image block.
InputBlock
Input block.
MarkdownTextObject
A type that represents mrkdwn in TextObject.
MessagePayloads
Message payloads.
OauthRedirectQuery
The type that represents a query when redirected.
OauthV2AccessRequest
The type that represents a request of oauth.v2.access.
OauthV2AccessResponse
The type that represents a response of oauth.v2.access.
PlainTextObject
A type that represents plain_text in TextObject.
RichTextBlock
Rich text block.
RichTextElementBroadcast
The following are the properties of the broadcast object type in the elements array.
RichTextElementChannel
The following are the properties of the channel object type in the elements array.
RichTextElementColor
The following are the properties of the color object type in the elements array.
RichTextElementDate
The following are the properties of the date object type in the elements array.
RichTextElementEmoji
The following are the properties of the emoji object type in the elements array.
RichTextElementLink
The following are the properties of the link object type in the elements array.
RichTextElementText
The following are the properties of the text object type in the elements array.
RichTextElementUser
The following are the properties of the user object type in the elements array.
RichTextElementUsergroup
The following are the properties of the usergroup object type in the elements array.
RichTextList
List element: rich_text_list.
RichTextPreformatted
Preformatted code block element: rich_text_preformatted.
RichTextQuote
Quote element: rich_text_quote.
RichTextSection
Section element: rich_text_section.
RichTextStyle
An object containing four boolean properties: bold, italic, strike, and code.
RichTextStyle2
An object of six optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, and unlink.
SectionBlock
Section block.
SlashCommandBody
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.
ButtonStyle
The enumerated value that represents the button style.
ChatPostMessageContent
The type that represents a selection of ChatPostMessageRequest::content.
CoreError
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.
FileBlockSource
A source field in File block.
FilesUploadRequestContent
File contents via a POST variable.
Layouts
The type that represents a composition object.
RichTextElement
Rich text element types.
RichTextElementBroadcastRange
The range of the broadcast; value can be here, channel, or everyone.
RichTextListStyle
The value of the style field in RichTextList.
RichTextObject
An element in rich text block.
ServerError
The type that represents all erros in sfr-server.
SlashCommandResponse
The response type for slash command. https://api.slack.com/interactivity/slash-commands#responding_to_commands
TextObject
The type that represents a text object.