pub struct Node {
pub id: NodeId,
pub kind: String,
pub name: String,
pub parent: Option<NodeId>,
pub attrs: Attributes,
}Fields§
§id: NodeId§kind: StringThe plugin’s own vocabulary — “file” today; “module”/“function”/… later. The core never interprets this, only stores and projects on it.
name: String§parent: Option<NodeId>Containing node, if any (a hard structural link to another node by id — e.g. a function’s file).
attrs: AttributesFree-form attributes (path, loc, visibility, version, …, plus
language-specific keys). The plugin fills structural ones; the
orchestrator adds computed ones (metrics, cycle) into the same map.
Described by the level’s node_attributes dictionary. Flattened into the
node JSON object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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