pub enum Block {
Show 22 variants
Actions(ActionsBlock),
Alert(AlertBlock),
Card(CardBlock),
Carousel(CarouselBlock),
Container(ContainerBlock),
Context(ContextBlock),
ContextActions(ContextActionsBlock),
DataTable(DataTableBlock),
DataVisualization(DataVisualizationBlock),
Divider(DividerBlock),
File(FileBlock),
Header(HeaderBlock),
Image(ImageBlock),
Input(InputBlock),
Markdown(MarkdownBlock),
Plan(PlanBlock),
RichText(RichTextBlock),
Section(SectionBlock),
Table(TableBlock),
TaskCard(TaskCardBlock),
Video(VideoBlock),
Unknown(Value),
}Expand description
A layout block. https://docs.slack.dev/reference/block-kit/blocks
Variants§
Actions(ActionsBlock)
Alert(AlertBlock)
Card(CardBlock)
Carousel(CarouselBlock)
Container(ContainerBlock)
Context(ContextBlock)
ContextActions(ContextActionsBlock)
DataTable(DataTableBlock)
DataVisualization(DataVisualizationBlock)
Divider(DividerBlock)
File(FileBlock)
Header(HeaderBlock)
Image(ImageBlock)
Input(InputBlock)
Markdown(MarkdownBlock)
Plan(PlanBlock)
RichText(RichTextBlock)
Section(SectionBlock)
Table(TableBlock)
TaskCard(TaskCardBlock)
Video(VideoBlock)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ActionsBlock> for Block
impl From<ActionsBlock> for Block
Source§fn from(value: ActionsBlock) -> Self
fn from(value: ActionsBlock) -> Self
Converts to this type from the input type.
Source§impl From<AlertBlock> for Block
impl From<AlertBlock> for Block
Source§fn from(value: AlertBlock) -> Self
fn from(value: AlertBlock) -> Self
Converts to this type from the input type.
Source§impl From<CarouselBlock> for Block
impl From<CarouselBlock> for Block
Source§fn from(value: CarouselBlock) -> Self
fn from(value: CarouselBlock) -> Self
Converts to this type from the input type.
Source§impl From<ContainerBlock> for Block
impl From<ContainerBlock> for Block
Source§fn from(value: ContainerBlock) -> Self
fn from(value: ContainerBlock) -> Self
Converts to this type from the input type.
Source§impl From<ContextActionsBlock> for Block
impl From<ContextActionsBlock> for Block
Source§fn from(value: ContextActionsBlock) -> Self
fn from(value: ContextActionsBlock) -> Self
Converts to this type from the input type.
Source§impl From<ContextBlock> for Block
impl From<ContextBlock> for Block
Source§fn from(value: ContextBlock) -> Self
fn from(value: ContextBlock) -> Self
Converts to this type from the input type.
Source§impl From<DataTableBlock> for Block
impl From<DataTableBlock> for Block
Source§fn from(value: DataTableBlock) -> Self
fn from(value: DataTableBlock) -> Self
Converts to this type from the input type.
Source§impl From<DataVisualizationBlock> for Block
impl From<DataVisualizationBlock> for Block
Source§fn from(value: DataVisualizationBlock) -> Self
fn from(value: DataVisualizationBlock) -> Self
Converts to this type from the input type.
Source§impl From<DividerBlock> for Block
impl From<DividerBlock> for Block
Source§fn from(value: DividerBlock) -> Self
fn from(value: DividerBlock) -> Self
Converts to this type from the input type.
Source§impl From<HeaderBlock> for Block
impl From<HeaderBlock> for Block
Source§fn from(value: HeaderBlock) -> Self
fn from(value: HeaderBlock) -> Self
Converts to this type from the input type.
Source§impl From<ImageBlock> for Block
impl From<ImageBlock> for Block
Source§fn from(value: ImageBlock) -> Self
fn from(value: ImageBlock) -> Self
Converts to this type from the input type.
Source§impl From<InputBlock> for Block
impl From<InputBlock> for Block
Source§fn from(value: InputBlock) -> Self
fn from(value: InputBlock) -> Self
Converts to this type from the input type.
Source§impl From<MarkdownBlock> for Block
impl From<MarkdownBlock> for Block
Source§fn from(value: MarkdownBlock) -> Self
fn from(value: MarkdownBlock) -> Self
Converts to this type from the input type.
Source§impl From<RichTextBlock> for Block
impl From<RichTextBlock> for Block
Source§fn from(value: RichTextBlock) -> Self
fn from(value: RichTextBlock) -> Self
Converts to this type from the input type.
Source§impl From<SectionBlock> for Block
impl From<SectionBlock> for Block
Source§fn from(value: SectionBlock) -> Self
fn from(value: SectionBlock) -> Self
Converts to this type from the input type.
Source§impl From<TableBlock> for Block
impl From<TableBlock> for Block
Source§fn from(value: TableBlock) -> Self
fn from(value: TableBlock) -> Self
Converts to this type from the input type.
Source§impl From<TaskCardBlock> for Block
impl From<TaskCardBlock> for Block
Source§fn from(value: TaskCardBlock) -> Self
fn from(value: TaskCardBlock) -> Self
Converts to this type from the input type.
Source§impl From<VideoBlock> for Block
impl From<VideoBlock> for Block
Source§fn from(value: VideoBlock) -> Self
fn from(value: VideoBlock) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more