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: TextAndChildren
Heading1
Heading2
Heading3
Callout
Quote
Fields
§
quote: TextAndChildren
BulletedListItem
Fields
§
bulleted_list_item: TextAndChildren
NumberedListItem
Fields
§
numbered_list_item: TextAndChildren
ToDo
Fields
§
to_do: ToDoFields
Toggle
Fields
§
toggle: TextAndChildren
Code
Fields
§
code: CodeFields
ChildPage
Fields
§
child_page: ChildPageFields
ChildDatabase
Fields
§
child_page: ChildDatabaseFields
Embed
Fields
§
embed: EmbedFields
Image
Fields
§
image: FileObject
Video
Fields
§
video: FileObject
File
Fields
§
pdf: FileObject
Bookmark
Fields
§
bookmark: BookmarkFields
Equation
Divider
TableOfContents
Fields
§
table_of_contents: TableOfContents
Breadcrumb
ColumnList
Fields
§
column_list: ColumnListFields
Column
Fields
§
column: ColumnFields
LinkPreview
Fields
§
link_preview: LinkPreviewFields
Template
Fields
§
template: TemplateFields
LinkToPage
Fields
§
link_to_page: LinkToPageFields
Table
Fields
§
table: TableFields
SyncedBlock
Fields
§
synced_block: SyncedBlockFields
TableRow
Fields
§
table_row: TableRowFields
Unsupported
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.