pub struct Node {
pub path: String,
pub node_type: NodeType,
pub hash: Option<String>,
pub graph: Option<String>,
pub is_graph: bool,
pub metadata: HashMap<String, Value>,
}Fields§
§path: String§node_type: NodeType§hash: Option<String>§graph: Option<String>Which graph this node belongs to — mirrors filesystem directory entries:
"." = local, ".." = parent (escape), "child" = child graph, None = not on filesystem.
is_graph: boolTrue when this Directory node has a drft.toml (is a drft graph).
metadata: HashMap<String, Value>Structured metadata from parsers, keyed by parser name.
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