pub enum Block {
ActionBlock(ActionBlock),
ContextBlock(ContextBlock),
DividerBlock(DividerBlock),
FileBlock(FileBlock),
HeaderBlock(HeaderBlock),
ImageBlock(ImageBlock),
InputBlock(InputBlock),
SectionBlock(SectionBlock),
None,
}Expand description
Blocks are a series of components that can be combined to create visually rich and compellingly interactive messages. See: https://api.slack.com/reference/block-kit/blocks
Variants§
ActionBlock(ActionBlock)
ContextBlock(ContextBlock)
DividerBlock(DividerBlock)
FileBlock(FileBlock)
HeaderBlock(HeaderBlock)
ImageBlock(ImageBlock)
InputBlock(InputBlock)
SectionBlock(SectionBlock)
None
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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