pub enum Node {
Heading {
level: u8,
text: String,
},
Paragraph {
text: String,
},
Text {
text: String,
},
List {
items: Vec<Vec<Node>>,
},
Code {
language: Option<String>,
code: String,
},
Link {
text: String,
url: String,
},
Quote {
text: String,
},
Rewrite {
language: Option<String>,
search: String,
replace: String,
scope: Option<String>,
is_method_pattern: Option<bool>,
},
Unknown {
typ: String,
raw: Value,
},
}Expand description
Block-oriented normalized node model used by consumers (e.g. TUI).
Variants§
Heading
Markdown-style heading.
Paragraph
Paragraph text.
Text
Plain text line.
List
List with item nodes.
Code
Code block with optional language.
Link
Link block.
Quote
Quote block.
Rewrite
Rewrite block (search/replace transformation).
Fields
Unknown
Unknown/unsupported source node type preserved losslessly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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