pub enum BlockType {
Show 23 variants
Paragraph,
Heading1,
Heading2,
Heading3,
BulletedListItem,
NumberedListItem,
ToDo,
Toggle,
Code,
Quote,
Callout,
Divider,
Image,
Video,
File,
Embed,
Table,
TableRow,
ColumnList,
Column,
Equation,
Breadcrumb,
TableOfContents,
}Expand description
BlockType : Discriminator for block types. The structure of content varies by type (e.g. paragraph carries richText; code carries richText + language; image carries url + caption + altText).
Discriminator for block types. The structure of content varies by type (e.g. paragraph carries richText; code carries richText + language; image carries url + caption + altText).
Variants§
Paragraph
Heading1
Heading2
Heading3
BulletedListItem
NumberedListItem
ToDo
Toggle
Code
Quote
Callout
Divider
Image
Video
File
Embed
Table
TableRow
ColumnList
Column
Equation
Breadcrumb
TableOfContents
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockType
impl<'de> Deserialize<'de> for BlockType
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
Source§impl Ord for BlockType
impl Ord for BlockType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BlockType
impl PartialOrd for BlockType
impl Copy for BlockType
impl Eq for BlockType
impl StructuralPartialEq for BlockType
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnsafeUnpin for BlockType
impl UnwindSafe for BlockType
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