Enum notion::models::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

Fields

§common: BlockCommon
§paragraph: TextAndChildren
§

Heading1

Fields

§common: BlockCommon
§heading_1: Text
§

Heading2

Fields

§common: BlockCommon
§heading_2: Text
§

Heading3

Fields

§common: BlockCommon
§heading_3: Text
§

Callout

Fields

§common: BlockCommon
§callout: Callout
§

Quote

Fields

§common: BlockCommon
§

BulletedListItem

Fields

§common: BlockCommon
§bulleted_list_item: TextAndChildren
§

NumberedListItem

Fields

§common: BlockCommon
§numbered_list_item: TextAndChildren
§

ToDo

Fields

§common: BlockCommon
§to_do: ToDoFields
§

Toggle

Fields

§common: BlockCommon
§

Code

Fields

§common: BlockCommon
§

ChildPage

Fields

§common: BlockCommon
§child_page: ChildPageFields
§

ChildDatabase

Fields

§common: BlockCommon
§

Embed

Fields

§common: BlockCommon
§

Image

Fields

§common: BlockCommon
§image: FileObject
§

Video

Fields

§common: BlockCommon
§video: FileObject
§

File

Fields

§common: BlockCommon
§caption: Text
§

Pdf

Fields

§common: BlockCommon
§

Bookmark

Fields

§common: BlockCommon
§bookmark: BookmarkFields
§

Equation

Fields

§common: BlockCommon
§equation: Equation
§

Divider

Fields

§common: BlockCommon
§

TableOfContents

Fields

§common: BlockCommon
§table_of_contents: TableOfContents
§

Breadcrumb

Fields

§common: BlockCommon
§

ColumnList

Fields

§common: BlockCommon
§column_list: ColumnListFields
§

Column

Fields

§common: BlockCommon
§

LinkPreview

Fields

§common: BlockCommon
§link_preview: LinkPreviewFields
§

Template

Fields

§common: BlockCommon
§template: TemplateFields
§

LinkToPage

Fields

§common: BlockCommon
§link_to_page: LinkToPageFields
§

Table

Fields

§common: BlockCommon
§

SyncedBlock

Fields

§common: BlockCommon
§synced_block: SyncedBlockFields
§

TableRow

Fields

§common: BlockCommon
§table_row: TableRowFields
§

Unsupported

Fields

§common: BlockCommon
§

Unknown

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more