pub struct Node {
pub id: String,
pub has_explicit_id: bool,
pub doc_type: String,
pub title: String,
pub status: String,
pub risk_level: String,
pub created: Option<String>,
pub agent: Option<String>,
pub tags: Vec<String>,
pub path: PathBuf,
pub degree_in: usize,
pub degree_out: usize,
}Expand description
One node per discovered document, carrying the metadata the visualization surfaces need (Spec 001 §3.1).
Fields§
§id: StringFrontmatter id, falling back to the filename stem.
has_explicit_id: boolTrue when id came from frontmatter (not the filename fallback).
doc_type: String§title: String§status: String§risk_level: String§created: Option<String>§agent: Option<String>§path: PathBuf§degree_in: usizeIncoming edges (resolved references from other documents).
degree_out: usizeOutgoing edges (including unresolved/dangling references).
Implementations§
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