pub enum BlockType {
Show 33 variants
None,
Bookmark {
bookmark: BookmarkValue,
},
Breadcrumb {
breadcrump: BreadcrumpValue,
},
BulletedListItem {
bulleted_list_item: BulletedListItemValue,
},
Callout {
callout: CalloutValue,
},
ChildDatabase {
child_database: ChildDatabaseValue,
},
ChildPage {
child_page: ChildPageValue,
},
Code {
code: CodeValue,
},
ColumnList {
column_list: ColumnListValue,
},
Column {
column: ColumnValue,
},
Divider {
divider: DividerValue,
},
Embed {
embed: EmbedValue,
},
Equation {
equation: EquationValue,
},
File {
file: FileValue,
},
Heading1 {
heading_1: HeadingsValue,
},
Heading2 {
heading_2: HeadingsValue,
},
Heading3 {
heading_3: HeadingsValue,
},
Image {
image: ImageValue,
},
LinkPreview {
link_preview: LinkPreviewValue,
},
NumberedListItem {
numbered_list_item: NumberedListItemValue,
},
Paragraph {
paragraph: ParagraphValue,
},
Pdf {
pdf: PdfValue,
},
Quote {
quote: QuoteValue,
},
SyncedBlock {
synced_block: SyncedBlockValue,
},
Table {
table: TableValue,
},
TableOfContents {
table_of_contents: TableOfContentsValue,
},
TableRow {
table_row: TableRowsValue,
},
Template {
template: TemplateValue,
},
ToDo {
to_do: ToDoValue,
},
Toggle {
toggle: ToggleValue,
},
Video {
video: VideoValue,
},
LinkToPage {
link_to_page: Parent,
},
Unsupported,
}
Variants§
None
Bookmark
Fields
§
bookmark: BookmarkValue
Breadcrumb
Fields
§
breadcrump: BreadcrumpValue
BulletedListItem
Fields
§
bulleted_list_item: BulletedListItemValue
Callout
Fields
§
callout: CalloutValue
ChildDatabase
Fields
§
child_database: ChildDatabaseValue
ChildPage
Fields
§
child_page: ChildPageValue
Code
ColumnList
Fields
§
column_list: ColumnListValue
Column
Fields
§
column: ColumnValue
Divider
Fields
§
divider: DividerValue
Embed
Fields
§
embed: EmbedValue
Equation
Fields
§
equation: EquationValue
File
Heading1
Fields
§
heading_1: HeadingsValue
Heading2
Fields
§
heading_2: HeadingsValue
Heading3
Fields
§
heading_3: HeadingsValue
Image
Fields
§
image: ImageValue
LinkPreview
Fields
§
link_preview: LinkPreviewValue
NumberedListItem
Fields
§
numbered_list_item: NumberedListItemValue
Paragraph
Fields
§
paragraph: ParagraphValue
Quote
Fields
§
quote: QuoteValue
SyncedBlock
Fields
§
synced_block: SyncedBlockValue
Table
Fields
§
table: TableValue
TableOfContents
Fields
§
table_of_contents: TableOfContentsValue
TableRow
Fields
§
table_row: TableRowsValue
Template
Fields
§
template: TemplateValue
ToDo
Toggle
Fields
§
toggle: ToggleValue
Video
Fields
§
video: VideoValue
LinkToPage
Unsupported
Implementations§
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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.