pub enum PortableDocumentBlock {
Paragraph {
text: String,
},
Section {
title: String,
blocks: Vec<PortableDocumentBlock>,
},
BulletedList {
items: Vec<String>,
},
NumberedList {
items: Vec<String>,
},
}Variants§
Trait Implementations§
Source§impl Clone for PortableDocumentBlock
impl Clone for PortableDocumentBlock
Source§impl Debug for PortableDocumentBlock
impl Debug for PortableDocumentBlock
Source§impl<'de> Deserialize<'de> for PortableDocumentBlock
impl<'de> Deserialize<'de> for PortableDocumentBlock
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 PartialEq for PortableDocumentBlock
impl PartialEq for PortableDocumentBlock
Source§impl Serialize for PortableDocumentBlock
impl Serialize for PortableDocumentBlock
impl StructuralPartialEq for PortableDocumentBlock
Auto Trait Implementations§
impl Forget for PortableDocumentBlock
impl Freeze for PortableDocumentBlock
impl RefUnwindSafe for PortableDocumentBlock
impl Send for PortableDocumentBlock
impl Sync for PortableDocumentBlock
impl Unpin for PortableDocumentBlock
impl UnsafeUnpin for PortableDocumentBlock
impl UnwindSafe for PortableDocumentBlock
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