Skip to main content Module blocks Copy item path Source block_kit Block Kit support md Builds a SlackBlockMarkDownText ,
converted into the caller’s target type via Into . pt Builds a SlackBlockPlainText ,
converted into the caller’s target type via Into . slack_block_item slack_blocks Builds a Vec<T> of block-kit items from a comma-separated list, in one
of two syntaxes that may be freely mixed within a single list: SlackAccessibilityLabel SlackActionsBlock SlackActionsBlockInit Required fields of SlackActionsBlock; convert with SlackActionsBlock::from or .into(). SlackAlertBlock SlackAlertBlockInit Required fields of SlackAlertBlock; convert with SlackAlertBlock::from or .into(). SlackBlockButtonElement SlackBlockButtonElementInit Required fields of SlackBlockButtonElement; convert with SlackBlockButtonElement::from or .into(). SlackBlockChannelsSelectElement SlackBlockChannelsSelectElementInit Required fields of SlackBlockChannelsSelectElement; convert with SlackBlockChannelsSelectElement::from or .into(). SlackBlockCheckboxesElement SlackBlockCheckboxesElementInit Required fields of SlackBlockCheckboxesElement; convert with SlackBlockCheckboxesElement::from or .into(). SlackBlockChoiceItem SlackBlockChoiceItemInit Required fields of SlackBlockChoiceItem; convert with SlackBlockChoiceItem::from or .into(). SlackBlockConfirmItem SlackBlockConfirmItemInit Required fields of SlackBlockConfirmItem; convert with SlackBlockConfirmItem::from or .into(). SlackBlockConversationFilter SlackBlockConversationFilterInit Required fields of SlackBlockConversationFilter; convert with SlackBlockConversationFilter::from or .into(). SlackBlockConversationsSelectElement SlackBlockConversationsSelectElementInit Required fields of SlackBlockConversationsSelectElement; convert with SlackBlockConversationsSelectElement::from or .into(). SlackBlockDatePickerElement SlackBlockDatePickerElementInit Required fields of SlackBlockDatePickerElement; convert with SlackBlockDatePickerElement::from or .into(). SlackBlockDateTimePickerElement SlackBlockDateTimePickerElementInit Required fields of SlackBlockDateTimePickerElement; convert with SlackBlockDateTimePickerElement::from or .into(). SlackBlockEmailInputElement SlackBlockEmailInputElementInit Required fields of SlackBlockEmailInputElement; convert with SlackBlockEmailInputElement::from or .into(). SlackBlockExternalSelectElement SlackBlockExternalSelectElementInit Required fields of SlackBlockExternalSelectElement; convert with SlackBlockExternalSelectElement::from or .into(). SlackBlockFeedbackButtonsElement SlackBlockFeedbackButtonsElementInit Required fields of SlackBlockFeedbackButtonsElement; convert with SlackBlockFeedbackButtonsElement::from or .into(). SlackBlockFileInputElement https://docs.slack.dev/reference/block-kit/block-elements/file-input-element SlackBlockFileInputElementInit Required fields of SlackBlockFileInputElement; convert with SlackBlockFileInputElement::from or .into(). SlackBlockIconButtonElement SlackBlockIconButtonElementInit Required fields of SlackBlockIconButtonElement; convert with SlackBlockIconButtonElement::from or .into(). SlackBlockId SlackBlockImageElement SlackBlockImageElementInit Required fields of SlackBlockImageElement; convert with SlackBlockImageElement::from or .into(). SlackBlockMarkDownText ‘mrkdwn’ type of https://api.slack.com/reference/block-kit/composition-objects#text SlackBlockMarkDownTextInit Required fields of SlackBlockMarkDownText; convert with SlackBlockMarkDownText::from or .into(). SlackBlockMultiChannelsSelectElement SlackBlockMultiChannelsSelectElementInit Required fields of SlackBlockMultiChannelsSelectElement; convert with SlackBlockMultiChannelsSelectElement::from or .into(). SlackBlockMultiConversationsSelectElement SlackBlockMultiConversationsSelectElementInit Required fields of SlackBlockMultiConversationsSelectElement; convert with SlackBlockMultiConversationsSelectElement::from or .into(). SlackBlockMultiExternalSelectElement SlackBlockMultiExternalSelectElementInit Required fields of SlackBlockMultiExternalSelectElement; convert with SlackBlockMultiExternalSelectElement::from or .into(). SlackBlockMultiStaticSelectElement SlackBlockMultiStaticSelectElementInit Required fields of SlackBlockMultiStaticSelectElement; convert with SlackBlockMultiStaticSelectElement::from or .into(). SlackBlockMultiUsersSelectElement SlackBlockMultiUsersSelectElementInit Required fields of SlackBlockMultiUsersSelectElement; convert with SlackBlockMultiUsersSelectElement::from or .into(). SlackBlockNumberInputElement SlackBlockNumberInputElementInit Required fields of SlackBlockNumberInputElement; convert with SlackBlockNumberInputElement::from or .into(). SlackBlockOptionGroup SlackBlockOptionGroupInit Required fields of SlackBlockOptionGroup; convert with SlackBlockOptionGroup::from or .into(). SlackBlockOverflowElement SlackBlockOverflowElementInit Required fields of SlackBlockOverflowElement; convert with SlackBlockOverflowElement::from or .into(). SlackBlockPlainText ‘plain_text’ type of https://api.slack.com/reference/block-kit/composition-objects#text SlackBlockPlainTextInit Required fields of SlackBlockPlainText; convert with SlackBlockPlainText::from or .into(). SlackBlockPlainTextInputElement SlackBlockPlainTextInputElementInit Required fields of SlackBlockPlainTextInputElement; convert with SlackBlockPlainTextInputElement::from or .into(). SlackBlockPlainTextOnly SlackBlockRadioButtonsElement SlackBlockRadioButtonsElementInit Required fields of SlackBlockRadioButtonsElement; convert with SlackBlockRadioButtonsElement::from or .into(). SlackBlockRichTextInputElement https://api.slack.com/reference/block-kit/block-elements#rich_text_input SlackBlockRichTextInputElementInit Required fields of SlackBlockRichTextInputElement; convert with SlackBlockRichTextInputElement::from or .into(). SlackBlockStaticSelectElement SlackBlockStaticSelectElementInit Required fields of SlackBlockStaticSelectElement; convert with SlackBlockStaticSelectElement::from or .into(). SlackBlockTimePickerElement SlackBlockTimePickerElementInit Required fields of SlackBlockTimePickerElement; convert with SlackBlockTimePickerElement::from or .into(). SlackBlockUrlInputElement SlackBlockUrlInputElementInit Required fields of SlackBlockUrlInputElement; convert with SlackBlockUrlInputElement::from or .into(). SlackBlockUsersSelectElement SlackBlockUsersSelectElementInit Required fields of SlackBlockUsersSelectElement; convert with SlackBlockUsersSelectElement::from or .into(). SlackBlockWorkflowButtonElement https://docs.slack.dev/reference/block-kit/block-elements/workflow-button-element SlackBlockWorkflowButtonElementInit Required fields of SlackBlockWorkflowButtonElement; convert with SlackBlockWorkflowButtonElement::from or .into(). SlackCardBlock SlackCardBlockInit Required fields of SlackCardBlock; convert with SlackCardBlock::from or .into(). SlackCarouselBlock https://docs.slack.dev/reference/block-kit/blocks/carousel-block SlackCarouselBlockInit Required fields of SlackCarouselBlock; convert with SlackCarouselBlock::from or .into(). SlackChartAxisConfig categories defines the valid data-point labels and their x-axis order.SlackChartAxisConfigInit Required fields of SlackChartAxisConfig; convert with SlackChartAxisConfig::from or .into(). SlackChartDataPoint SlackChartDataPointInit Required fields of SlackChartDataPoint; convert with SlackChartDataPoint::from or .into(). SlackChartDataSeries SlackChartDataSeriesInit Required fields of SlackChartDataSeries; convert with SlackChartDataSeries::from or .into(). SlackChartSegment SlackChartSegmentInit Required fields of SlackChartSegment; convert with SlackChartSegment::from or .into(). SlackContainerBlock https://docs.slack.dev/reference/block-kit/blocks/container-blockOne of title / rich_text_title is required; rich_text_title wins whenboth are set. child_blocks holds at most 10 blocks. The docs list`actions, context, divider, file, header, image, input, rich_text, section,table, video` as supported children while the live validator accepts`divider, image, section, contact_card, callout, canvas_table, actions,video, header, context, table, layout`; neither set is enforced here. SlackContainerBlockInit Required fields of SlackContainerBlock; convert with SlackContainerBlock::from or .into(). SlackContextActionsBlock SlackContextActionsBlockInit Required fields of SlackContextActionsBlock; convert with SlackContextActionsBlock::from or .into(). SlackContextBlock SlackContextBlockInit Required fields of SlackContextBlock; convert with SlackContextBlock::from or .into(). SlackDataTableActionCell A button in a cell; fallback is a raw_text or raw_number cell shown
by clients that do not support action cells. SlackDataTableActionCellInit Required fields of SlackDataTableActionCell; convert with SlackDataTableActionCell::from or .into(). SlackDataTableBlock https://docs.slack.dev/reference/block-kit/blocks/data-table-blockThe first row is the header and may not hold rich_text cells. 2–201 rows,1–20 columns, every row the same length; page_size is 1–100 (default 5). SlackDataTableBlockInit Required fields of SlackDataTableBlock; convert with SlackDataTableBlock::from or .into(). SlackDataTableRawNumberCell value sorts the column numerically when every cell in it is a
raw_number; text is what is displayed.SlackDataTableRawNumberCellInit Required fields of SlackDataTableRawNumberCell; convert with SlackDataTableRawNumberCell::from or .into(). SlackDataVisualizationBlock https://docs.slack.dev/reference/block-kit/blocks/data-visualization-blocktitle is at most 50 characters; a message may hold at most two of these. SlackDataVisualizationBlockInit Required fields of SlackDataVisualizationBlock; convert with SlackDataVisualizationBlock::from or .into(). SlackDispatchActionConfig SlackDispatchActionConfigInit Required fields of SlackDispatchActionConfig; convert with SlackDispatchActionConfig::from or .into(). SlackDividerBlock SlackDividerBlockInit Required fields of SlackDividerBlock; convert with SlackDividerBlock::from or .into(). SlackFeedbackButtonItem https://docs.slack.dev/reference/block-kit/blocks/context-actions-blockhttps://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-elementhttps://docs.slack.dev/reference/block-kit/block-elements/icon-button-element SlackFeedbackButtonItemInit Required fields of SlackFeedbackButtonItem; convert with SlackFeedbackButtonItem::from or .into(). SlackFileBlock SlackFileBlockInit Required fields of SlackFileBlock; convert with SlackFileBlock::from or .into(). SlackHeaderBlock SlackHeaderBlockInit Required fields of SlackHeaderBlock; convert with SlackHeaderBlock::from or .into(). SlackHeaderLevel Header block heading level: 1–4 = H1–H4. SlackHomeView SlackHomeViewInit Required fields of SlackHomeView; convert with SlackHomeView::from or .into(). SlackImageBlock SlackImageBlockInit Required fields of SlackImageBlock; convert with SlackImageBlock::from or .into(). SlackInputBlock SlackInputBlockInit Required fields of SlackInputBlock; convert with SlackInputBlock::from or .into(). SlackMarkdownBlock https://api.slack.com/reference/block-kit/blocks#markdown SlackMarkdownBlockInit Required fields of SlackMarkdownBlock; convert with SlackMarkdownBlock::from or .into(). SlackModalView SlackModalViewInit Required fields of SlackModalView; convert with SlackModalView::from or .into(). SlackPieChart 1–12 segments; each renders as value / sum(values). SlackPieChartInit Required fields of SlackPieChart; convert with SlackPieChart::from or .into(). SlackPlanBlock https://docs.slack.dev/reference/block-kit/blocks/plan-blocktasks holds up to 50 task-card objects without a type tag(SlackTaskCardBlock serialises without one); every task_id in a planmust be unique. SlackPlanBlockInit Required fields of SlackPlanBlock; convert with SlackPlanBlock::from or .into(). SlackRichTextBlock https://api.slack.com/reference/block-kit/blocks#rich_text SlackRichTextBlockInit Required fields of SlackRichTextBlock; convert with SlackRichTextBlock::from or .into(). SlackRichTextBroadcast SlackRichTextBroadcastInit Required fields of SlackRichTextBroadcast; convert with SlackRichTextBroadcast::from or .into(). SlackRichTextChannel SlackRichTextChannelInit Required fields of SlackRichTextChannel; convert with SlackRichTextChannel::from or .into(). SlackRichTextColor SlackRichTextColorInit Required fields of SlackRichTextColor; convert with SlackRichTextColor::from or .into(). SlackRichTextDate SlackRichTextDateInit Required fields of SlackRichTextDate; convert with SlackRichTextDate::from or .into(). SlackRichTextEmoji SlackRichTextEmojiInit Required fields of SlackRichTextEmoji; convert with SlackRichTextEmoji::from or .into(). SlackRichTextLink SlackRichTextLinkInit Required fields of SlackRichTextLink; convert with SlackRichTextLink::from or .into(). SlackRichTextList SlackRichTextListInit Required fields of SlackRichTextList; convert with SlackRichTextList::from or .into(). SlackRichTextMessageMention SlackRichTextMessageMentionInit Required fields of SlackRichTextMessageMention; convert with SlackRichTextMessageMention::from or .into(). SlackRichTextPreformatted SlackRichTextPreformattedInit Required fields of SlackRichTextPreformatted; convert with SlackRichTextPreformatted::from or .into(). SlackRichTextQuote SlackRichTextQuoteInit Required fields of SlackRichTextQuote; convert with SlackRichTextQuote::from or .into(). SlackRichTextSection SlackRichTextSectionInit Required fields of SlackRichTextSection; convert with SlackRichTextSection::from or .into(). SlackRichTextStyle SlackRichTextStyleInit Required fields of SlackRichTextStyle; convert with SlackRichTextStyle::from or .into(). SlackRichTextText SlackRichTextTextInit Required fields of SlackRichTextText; convert with SlackRichTextText::from or .into(). SlackRichTextUser SlackRichTextUserGroup SlackRichTextUserGroupInit Required fields of SlackRichTextUserGroup; convert with SlackRichTextUserGroup::from or .into(). SlackRichTextUserInit Required fields of SlackRichTextUser; convert with SlackRichTextUser::from or .into(). SlackSectionBlock SlackSectionBlockInit Required fields of SlackSectionBlock; convert with SlackSectionBlock::from or .into(). SlackSeriesChart Shared by bar, area and line: 1–12 series, each with exactly one data
point per entry of axis_config.categories, and unique series names. SlackSeriesChartInit Required fields of SlackSeriesChart; convert with SlackSeriesChart::from or .into(). SlackStatefulStateParams SlackStatefulStateParamsInit Required fields of SlackStatefulStateParams; convert with SlackStatefulStateParams::from or .into(). SlackStatefulView SlackStatefulViewInit Required fields of SlackStatefulView; convert with SlackStatefulView::from or .into(). SlackTableBlock https://docs.slack.dev/reference/block-kit/blocks/table-block SlackTableBlockInit Required fields of SlackTableBlock; convert with SlackTableBlock::from or .into(). SlackTableColumnSetting SlackTableColumnSettingInit Required fields of SlackTableColumnSetting; convert with SlackTableColumnSetting::from or .into(). SlackTableRawTextCell SlackTableRawTextCellInit Required fields of SlackTableRawTextCell; convert with SlackTableRawTextCell::from or .into(). SlackTableRichTextCell SlackTableRichTextCellInit Required fields of SlackTableRichTextCell; convert with SlackTableRichTextCell::from or .into(). SlackTaskCardBlock https://docs.slack.dev/reference/block-kit/blocks/task-card-block SlackTaskCardBlockInit Required fields of SlackTaskCardBlock; convert with SlackTaskCardBlock::from or .into(). SlackTaskCardIcon Icon shown on a task card, serialised as {"type":"icon","name":"<icon name>"}.
name is an icon name, not a URL. SlackTaskCardIconInit Required fields of SlackTaskCardIcon; convert with SlackTaskCardIcon::from or .into(). SlackTaskId SlackUrlSourceElement https://docs.slack.dev/reference/block-kit/block-elements/url-source-element SlackUrlSourceElementInit Required fields of SlackUrlSourceElement; convert with SlackUrlSourceElement::from or .into(). SlackVideoBlock https://api.slack.com/reference/block-kit/blocks#video SlackVideoBlockInit Required fields of SlackVideoBlock; convert with SlackVideoBlock::from or .into(). SlackViewState SlackViewStateInit Required fields of SlackViewState; convert with SlackViewState::from or .into(). SlackViewStateValue SlackViewStateValueInit Required fields of SlackViewStateValue; convert with SlackViewStateValue::from or .into(). SlackViewStateValueSelectedOption SlackViewStateValueSelectedOptionInit Required fields of SlackViewStateValueSelectedOption; convert with SlackViewStateValueSelectedOption::from or .into(). SlackViewSubmissionClearResponse SlackViewSubmissionClearResponseInit Required fields of SlackViewSubmissionClearResponse; convert with SlackViewSubmissionClearResponse::from or .into(). SlackViewSubmissionErrorsResponse SlackViewSubmissionErrorsResponseInit Required fields of SlackViewSubmissionErrorsResponse; convert with SlackViewSubmissionErrorsResponse::from or .into(). SlackViewSubmissionPushResponse SlackViewSubmissionPushResponseInit Required fields of SlackViewSubmissionPushResponse; convert with SlackViewSubmissionPushResponse::from or .into(). SlackViewSubmissionUpdateResponse SlackViewSubmissionUpdateResponseInit Required fields of SlackViewSubmissionUpdateResponse; convert with SlackViewSubmissionUpdateResponse::from or .into(). SlackWorkflow SlackWorkflowInit Required fields of SlackWorkflow; convert with SlackWorkflow::from or .into(). SlackWorkflowTrigger SlackWorkflowTriggerInit Required fields of SlackWorkflowTrigger; convert with SlackWorkflowTrigger::from or .into(). SlackWorkflowTriggerInputParameter https://docs.slack.dev/reference/block-kit/composition-objects/workflow-object SlackWorkflowTriggerInputParameterInit Required fields of SlackWorkflowTriggerInputParameter; convert with SlackWorkflowTriggerInputParameter::from or .into(). SlackActionBlockElement SlackAlertLevel https://docs.slack.dev/reference/block-kit/blocks/alert-block SlackBlock Blocks are internally tagged by type. A block whose type the crate does
not model — or whose body does not match its known type — lands in
SlackBlock::Unknown with its raw JSON instead of failing the whole
Vec<SlackBlock>. Unknown must stay the last variant. SlackBlockButtonStyle SlackBlockText https://api.slack.com/reference/block-kit/composition-objects#text SlackCardActionBlockElement SlackCardImageElement https://docs.slack.dev/reference/block-kit/blocks/card-block SlackChart SlackContainerWidth narrow, standard (default) and wide are platform-constrained widths;
full fills the available space.SlackContextActionBlockElement SlackContextBlockElement SlackConversationFilterInclude SlackDataTableActionElement SlackDataTableCell SlackDateTimeFormats SlackDispatchActionTrigger https://docs.slack.dev/reference/block-kit/composition-objects/dispatch-action-configuration-object SlackFileIdOrUrl SlackImageUrlOrFile SlackInputBlockElement SlackRichTextBroadcastRange SlackRichTextElement SlackRichTextInlineContent SlackRichTextInlineElement SlackRichTextListElement SlackRichTextListStyle SlackSectionBlockElement SlackTableCell SlackTableColumnAlign SlackTaskCardSource SlackTaskCardStatus SlackView SlackViewSubmissionResponse fmt_slack_date SlackActionState SlackActionStateValue