pub enum HtmlNodeKind {
Heading(u8),
Paragraph,
Blockquote,
CodeBlock,
ListItem,
Link,
Image,
HorizontalRule,
}Expand description
Semantic block type emitted by the native sanitized HTML parser.
Variants§
Heading(u8)
Section heading (1..=6 matching <h1>..<h6>).
Paragraph
Standard body paragraph (<p>).
Blockquote
Quoted callout block (<blockquote>).
CodeBlock
Monospace code block (<pre> / <code>).
ListItem
Bulleted or numbered list entry (<li>).
Link
Clickable hyperlink (<a href="...">).
Image
Inline or block image reference (<img src="..." alt="...">).
HorizontalRule
Visual section divider (<hr>).
Trait Implementations§
Source§impl Clone for HtmlNodeKind
impl Clone for HtmlNodeKind
impl Copy for HtmlNodeKind
Source§impl Debug for HtmlNodeKind
impl Debug for HtmlNodeKind
Source§impl Default for HtmlNodeKind
impl Default for HtmlNodeKind
Source§impl<'de> Deserialize<'de> for HtmlNodeKind
impl<'de> Deserialize<'de> for HtmlNodeKind
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 Eq for HtmlNodeKind
Source§impl Hash for HtmlNodeKind
impl Hash for HtmlNodeKind
Source§impl PartialEq for HtmlNodeKind
impl PartialEq for HtmlNodeKind
Source§impl Serialize for HtmlNodeKind
impl Serialize for HtmlNodeKind
impl StructuralPartialEq for HtmlNodeKind
Auto Trait Implementations§
impl Forget for HtmlNodeKind
impl Freeze for HtmlNodeKind
impl Move for HtmlNodeKind
impl RefUnwindSafe for HtmlNodeKind
impl Send for HtmlNodeKind
impl Sync for HtmlNodeKind
impl Unpin for HtmlNodeKind
impl UnsafeUnpin for HtmlNodeKind
impl UnwindSafe for HtmlNodeKind
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