pub enum ReadableNode {
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: ReadableSectionRole,
title: Option<String>,
collapsed: bool,
nodes: Vec<ReadableNode>,
},
Image {
alt: String,
src: Option<String>,
},
Form(HtmlForm),
}Expand description
Readable semantic 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.
Fields
CodeBlock
Code block.
Table
Table rows.
Spacer
Bounded vertical spacing hint.
Section
Semantic page region.
Image
Image proxy metadata.
Fields
Form(HtmlForm)
Web form.
Trait Implementations§
Source§impl Clone for ReadableNode
impl Clone for ReadableNode
Source§fn clone(&self) -> ReadableNode
fn clone(&self) -> ReadableNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadableNode
impl Debug for ReadableNode
Source§impl PartialEq for ReadableNode
impl PartialEq for ReadableNode
Source§fn eq(&self, other: &ReadableNode) -> bool
fn eq(&self, other: &ReadableNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReadableNode
impl StructuralPartialEq for ReadableNode
Auto Trait Implementations§
impl Freeze for ReadableNode
impl RefUnwindSafe for ReadableNode
impl Send for ReadableNode
impl Sync for ReadableNode
impl Unpin for ReadableNode
impl UnsafeUnpin for ReadableNode
impl UnwindSafe for ReadableNode
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