pub enum HtmlNode {
Heading {
level: u8,
text: String,
},
Paragraph(String),
Link(HtmlLink),
List {
ordered: bool,
items: Vec<String>,
},
CodeBlock {
language: Option<String>,
code: String,
},
Table {
rows: Vec<Vec<String>>,
},
Spacer {
lines: u8,
},
Section {
role: HtmlSectionRole,
title: Option<String>,
collapsed: bool,
nodes: Vec<HtmlNode>,
},
Image {
alt: String,
src: Option<String>,
},
Form(HtmlForm),
}Expand description
Semantic HTML content node.
Variants§
Heading
Heading with one-based level.
Paragraph(String)
Paragraph text.
Link(HtmlLink)
Link node used inside semantic sections.
List
Ordered or unordered list.
CodeBlock
Code block.
Table
Table rows.
Spacer
Bounded vertical spacing hint.
Section
Semantic page region.
Fields
§
role: HtmlSectionRoleInferred region role.
Image
Image proxy metadata.
Fields
Form(HtmlForm)
Web form.
Trait Implementations§
impl Eq for HtmlNode
impl StructuralPartialEq for HtmlNode
Auto Trait Implementations§
impl Freeze for HtmlNode
impl RefUnwindSafe for HtmlNode
impl Send for HtmlNode
impl Sync for HtmlNode
impl Unpin for HtmlNode
impl UnsafeUnpin for HtmlNode
impl UnwindSafe for HtmlNode
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