pub enum BlockType {
Show 34 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,
},
MeetingNotes {
meeting_notes: MeetingNotesValue,
},
Unsupported,
}Variants§
None
Bookmark
Fields
§
bookmark: BookmarkValueBreadcrumb
Fields
§
breadcrump: BreadcrumpValueBulletedListItem
Fields
§
bulleted_list_item: BulletedListItemValueCallout
Fields
§
callout: CalloutValueChildDatabase
Fields
§
child_database: ChildDatabaseValueChildPage
Fields
§
child_page: ChildPageValueCode
ColumnList
Fields
§
column_list: ColumnListValueColumn
Fields
§
column: ColumnValueDivider
Fields
§
divider: DividerValueEmbed
Fields
§
embed: EmbedValueEquation
Fields
§
equation: EquationValueFile
Heading1
Fields
§
heading_1: HeadingsValueHeading2
Fields
§
heading_2: HeadingsValueHeading3
Fields
§
heading_3: HeadingsValueImage
Fields
§
image: ImageValueLinkPreview
Fields
§
link_preview: LinkPreviewValueNumberedListItem
Fields
§
numbered_list_item: NumberedListItemValueParagraph
Fields
§
paragraph: ParagraphValueQuote
Fields
§
quote: QuoteValueSyncedBlock
Fields
§
synced_block: SyncedBlockValueTable
Fields
§
table: TableValueTableOfContents
Fields
§
table_of_contents: TableOfContentsValueTableRow
Fields
§
table_row: TableRowsValueTemplate
Fields
§
template: TemplateValueToDo
Toggle
Fields
§
toggle: ToggleValueVideo
Fields
§
video: VideoValueLinkToPage
MeetingNotes
Fields
§
meeting_notes: MeetingNotesValueUnsupported
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 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
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.