Enum notion_wasi::models::block::Block
source · pub enum Block {
Show 33 variants
Paragraph {
common: BlockCommon,
paragraph: TextAndChildren,
},
Heading1 {
common: BlockCommon,
heading_1: Text,
},
Heading2 {
common: BlockCommon,
heading_2: Text,
},
Heading3 {
common: BlockCommon,
heading_3: Text,
},
Callout {
common: BlockCommon,
callout: Callout,
},
Quote {
common: BlockCommon,
quote: TextAndChildren,
},
BulletedListItem {
common: BlockCommon,
bulleted_list_item: TextAndChildren,
},
NumberedListItem {
common: BlockCommon,
numbered_list_item: TextAndChildren,
},
ToDo {
common: BlockCommon,
to_do: ToDoFields,
},
Toggle {
common: BlockCommon,
toggle: TextAndChildren,
},
Code {
common: BlockCommon,
code: CodeFields,
},
ChildPage {
common: BlockCommon,
child_page: ChildPageFields,
},
ChildDatabase {
common: BlockCommon,
child_page: ChildDatabaseFields,
},
Embed {
common: BlockCommon,
embed: EmbedFields,
},
Image {
common: BlockCommon,
image: FileObject,
},
Video {
common: BlockCommon,
video: FileObject,
},
File {
common: BlockCommon,
file: FileObject,
caption: Text,
},
Pdf {
common: BlockCommon,
pdf: FileObject,
},
Bookmark {
common: BlockCommon,
bookmark: BookmarkFields,
},
Equation {
common: BlockCommon,
equation: Equation,
},
Divider {
common: BlockCommon,
},
TableOfContents {
common: BlockCommon,
table_of_contents: TableOfContents,
},
Breadcrumb {
common: BlockCommon,
},
ColumnList {
common: BlockCommon,
column_list: ColumnListFields,
},
Column {
common: BlockCommon,
column: ColumnFields,
},
LinkPreview {
common: BlockCommon,
link_preview: LinkPreviewFields,
},
Template {
common: BlockCommon,
template: TemplateFields,
},
LinkToPage {
common: BlockCommon,
link_to_page: LinkToPageFields,
},
Table {
common: BlockCommon,
table: TableFields,
},
SyncedBlock {
common: BlockCommon,
synced_block: SyncedBlockFields,
},
TableRow {
common: BlockCommon,
table_row: TableRowFields,
},
Unsupported {
common: BlockCommon,
},
Unknown,
}
Variants§
Paragraph
Heading1
Heading2
Heading3
Callout
Quote
BulletedListItem
NumberedListItem
ToDo
Toggle
Code
ChildPage
ChildDatabase
Embed
Image
Video
File
Bookmark
Equation
Divider
Fields
§
common: BlockCommon
TableOfContents
Breadcrumb
Fields
§
common: BlockCommon
ColumnList
Column
LinkPreview
Template
LinkToPage
Table
SyncedBlock
TableRow
Unsupported
Fields
§
common: BlockCommon
Unknown
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
source§impl Into<CreateBlock> for Block
impl Into<CreateBlock> for Block
source§fn into(self) -> CreateBlock
fn into(self) -> CreateBlock
Converts this type into the (usually inferred) input type.
source§impl PartialEq<Block> for Block
impl PartialEq<Block> for Block
impl Eq for Block
impl StructuralEq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.