pub enum CreateBlock {
Show 33 variants
Paragraph {
paragraph: TextAndChildren,
},
Heading1 {
heading_1: Text,
},
Heading2 {
heading_2: Text,
},
Heading3 {
heading_3: Text,
},
Callout {
callout: Callout,
},
Quote {
quote: TextAndChildren,
},
BulletedListItem {
bulleted_list_item: TextAndChildren,
},
NumberedListItem {
numbered_list_item: TextAndChildren,
},
ToDo {
to_do: ToDoFields,
},
Toggle {
toggle: TextAndChildren,
},
Code {
code: CodeFields,
},
ChildPage {
child_page: ChildPageFields,
},
ChildDatabase {
child_page: ChildDatabaseFields,
},
Embed {
embed: EmbedFields,
},
Image {
image: FileObject,
},
Video {
video: FileObject,
},
File {
file: FileObject,
caption: Text,
},
Pdf {
pdf: FileObject,
},
Bookmark {
bookmark: BookmarkFields,
},
Equation {
equation: Equation,
},
Divider,
TableOfContents {
table_of_contents: TableOfContents,
},
Breadcrumb,
ColumnList {
column_list: ColumnListFields,
},
Column {
column: ColumnFields,
},
LinkPreview {
link_preview: LinkPreviewFields,
},
Template {
template: TemplateFields,
},
LinkToPage {
link_to_page: LinkToPageFields,
},
Table {
table: TableFields,
},
SyncedBlock {
synced_block: SyncedBlockFields,
},
TableRow {
table_row: TableRowFields,
},
Unsupported,
Unknown,
}Variants§
Paragraph
Fields
§
paragraph: TextAndChildrenHeading1
Heading2
Heading3
Callout
Quote
Fields
§
quote: TextAndChildrenBulletedListItem
Fields
§
bulleted_list_item: TextAndChildrenNumberedListItem
Fields
§
numbered_list_item: TextAndChildrenToDo
Fields
§
to_do: ToDoFieldsToggle
Fields
§
toggle: TextAndChildrenCode
Fields
§
code: CodeFieldsChildPage
Fields
§
child_page: ChildPageFieldsChildDatabase
Fields
§
child_page: ChildDatabaseFieldsEmbed
Fields
§
embed: EmbedFieldsImage
Fields
§
image: FileObjectVideo
Fields
§
video: FileObjectFile
Fields
§
pdf: FileObjectBookmark
Fields
§
bookmark: BookmarkFieldsEquation
Divider
TableOfContents
Fields
§
table_of_contents: TableOfContentsBreadcrumb
ColumnList
Fields
§
column_list: ColumnListFieldsColumn
Fields
§
column: ColumnFieldsLinkPreview
Fields
§
link_preview: LinkPreviewFieldsTemplate
Fields
§
template: TemplateFieldsLinkToPage
Fields
§
link_to_page: LinkToPageFieldsTable
Fields
§
table: TableFieldsSyncedBlock
Fields
§
synced_block: SyncedBlockFieldsTableRow
Fields
§
table_row: TableRowFieldsUnsupported
Unknown
Trait Implementations§
Source§impl Clone for CreateBlock
impl Clone for CreateBlock
Source§fn clone(&self) -> CreateBlock
fn clone(&self) -> CreateBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateBlock
impl Debug for CreateBlock
Source§impl<'de> Deserialize<'de> for CreateBlock
impl<'de> Deserialize<'de> for CreateBlock
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 for CreateBlock
impl PartialEq for CreateBlock
Source§impl Serialize for CreateBlock
impl Serialize for CreateBlock
impl Eq for CreateBlock
impl StructuralPartialEq for CreateBlock
Auto Trait Implementations§
impl Freeze for CreateBlock
impl RefUnwindSafe for CreateBlock
impl Send for CreateBlock
impl Sync for CreateBlock
impl Unpin for CreateBlock
impl UnwindSafe for CreateBlock
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.