pub enum Block {
Show 15 variants
Heading {
level: HeadingLevel,
id: Option<AnchorId>,
content: InlineSeq,
attrs: BlockAttrs,
},
Paragraph {
content: InlineSeq,
attrs: BlockAttrs,
},
Quote {
blocks: Vec<Block>,
cite: Option<Url>,
attrs: BlockAttrs,
},
CodeBlock {
code: String,
language: Option<String>,
filename: Option<String>,
highlight_lines: Vec<u32>,
highlighted_html: Option<String>,
attrs: BlockAttrs,
},
Divider {
attrs: BlockAttrs,
},
List {
list: List,
attrs: BlockAttrs,
},
DefinitionList {
items: Vec<DefinitionItem>,
attrs: BlockAttrs,
},
Table {
caption: Option<Vec<Block>>,
sections: Vec<TableSection>,
attrs: BlockAttrs,
},
Figure {
content: Vec<Block>,
caption: Option<Vec<Block>>,
attrs: BlockAttrs,
},
Admonition {
kind: AdmonitionKind,
title: Option<InlineSeq>,
blocks: Vec<Block>,
attrs: BlockAttrs,
},
Details {
summary: Option<InlineSeq>,
blocks: Vec<Block>,
open: bool,
attrs: BlockAttrs,
},
MathBlock {
math: RenderPayload,
attrs: BlockAttrs,
},
SvgBlock {
svg: RenderPayload,
attrs: BlockAttrs,
},
UnknownBlock {
tag: String,
attrs: BlockAttrs,
children: Vec<UnknownChild>,
data: ExtensionMap,
note: Option<String>,
source: Option<String>,
},
RawBlock {
html: String,
origin: RawOrigin,
trust: RawTrust,
attrs: BlockAttrs,
},
}Variants§
Heading
Paragraph
Quote
CodeBlock
Fields
§
attrs: BlockAttrsDivider
Fields
§
attrs: BlockAttrsList
DefinitionList
Table
Figure
Admonition
Details
MathBlock
SvgBlock
UnknownBlock
RawBlock
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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