Enum notion::models::Block [−][src]
pub enum Block {
Paragraph {
common: BlockCommon,
paragraph: TextAndChildren,
},
Heading1 {
common: BlockCommon,
heading_1: Text,
},
Heading2 {
common: BlockCommon,
heading_2: Text,
},
Heading3 {
common: BlockCommon,
heading_3: Text,
},
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,
},
ChildPage {
common: BlockCommon,
child_page: ChildPageFields,
},
Unsupported,
}
Variants
Paragraph
Heading1
Heading2
Heading3
BulletedListItem
NumberedListItem
ToDo
Toggle
ChildPage
Unsupported
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Block
impl UnwindSafe for Block
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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