pub enum AppleWireBlock {
Paragraph {
runs: Vec<AppleWireRun>,
},
Heading {
level: u8,
runs: Vec<AppleWireRun>,
},
Blockquote {
paragraphs: Vec<AppleWireParagraph>,
},
BulletList {
items: Vec<AppleWireParagraph>,
},
OrderedList {
start: u32,
items: Vec<AppleWireParagraph>,
},
}Expand description
A block of an Apple document, tagged by type:
paragraph, heading (with level), blockquote, bullet_list,
ordered_list (with start).
Variants§
Paragraph
Fields
§
runs: Vec<AppleWireRun>Heading
Blockquote
Fields
§
paragraphs: Vec<AppleWireParagraph>BulletList
Fields
§
items: Vec<AppleWireParagraph>OrderedList
Trait Implementations§
Source§impl Clone for AppleWireBlock
impl Clone for AppleWireBlock
Source§impl Debug for AppleWireBlock
impl Debug for AppleWireBlock
Source§impl<'de> Deserialize<'de> for AppleWireBlock
impl<'de> Deserialize<'de> for AppleWireBlock
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 AppleWireBlock
impl PartialEq for AppleWireBlock
Source§impl Serialize for AppleWireBlock
impl Serialize for AppleWireBlock
impl StructuralPartialEq for AppleWireBlock
Auto Trait Implementations§
impl Freeze for AppleWireBlock
impl RefUnwindSafe for AppleWireBlock
impl Send for AppleWireBlock
impl Sync for AppleWireBlock
impl Unpin for AppleWireBlock
impl UnsafeUnpin for AppleWireBlock
impl UnwindSafe for AppleWireBlock
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