pub struct Node {
pub id: String,
pub kind: Option<String>,
pub title: String,
pub parent: Option<String>,
pub plane: Option<String>,
pub fields: Fields,
pub links: Vec<Link>,
pub body: String,
}Expand description
One file of the model: a node with its front matter, links and markdown body.
Fields§
§id: StringThe node’s id; it matches the file name without .md.
kind: Option<String>The node’s type. None if the file had none, which is a structure finding, not a load error.
title: StringDisplay title; the id when the file gives none.
parent: Option<String>Id of the parent node, if any.
plane: Option<String>Id of the plane the node sits in, if any.
fields: FieldsThe other front matter fields.
links: Vec<Link>Links from this node to other nodes.
body: StringThe markdown body.
Trait Implementations§
impl StructuralPartialEq for Node
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