pub enum Block {
Actions(ActionsBlock),
Context(ContextBlock),
Divider(DividerBlock),
File(FileBlock),
Header(HeaderBlock),
Image(ImageBlock),
RichText(RichTextBlock),
Input(InputBlock),
Section(SectionBlock),
}
Expand description
The type that represents a block.
Variants§
Actions(ActionsBlock)
Actions block.
Context(ContextBlock)
Context block.
Divider(DividerBlock)
Divider block.
File(FileBlock)
Header(HeaderBlock)
Header block.
Image(ImageBlock)
RichText(RichTextBlock)
Rich text block.
Input(InputBlock)
Section(SectionBlock)
Section block.
Trait Implementations§
Source§impl Serialize for Block
impl Serialize for Block
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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