pub enum DocBlock {
Heading {
level: u8,
slug: String,
text: String,
},
Paragraph(String),
Code {
language: String,
code: String,
},
ListItem(String),
BlockQuote(String),
Table {
headers: Vec<String>,
rows: Vec<Vec<String>>,
},
Image {
alt: String,
src: String,
},
HorizontalRule,
}Expand description
Structured content block extracted from a Markdown documentation file.
Variants§
Heading
Section heading with level (1..=6), anchor slug, and text.
Fields
Paragraph(String)
Plain paragraph text.
Code
Fenced or indented code block with optional language tag.
Fields
ListItem(String)
Unordered or ordered list item text.
BlockQuote(String)
Blockquote or callout note paragraph text.
Table
GitHub-Flavored Markdown table with header cells and body rows.
Fields
Image
Embedded image with alt text and source URL.
Fields
HorizontalRule
Thematic horizontal section divider (---).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocBlock
impl<'de> Deserialize<'de> for DocBlock
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 DocBlock
Auto Trait Implementations§
impl Forget for DocBlock
impl Freeze for DocBlockwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Vec<String>>: Freeze,
impl Move for DocBlock
impl RefUnwindSafe for DocBlock
impl Send for DocBlockwhere
RawVecInner: Send,
impl Sync for DocBlockwhere
RawVecInner: Sync,
impl Unpin for DocBlock
impl UnsafeUnpin for DocBlockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Vec<String>>: UnsafeUnpin,
impl UnwindSafe for DocBlockwhere
RawVecInner: UnwindSafe,
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