pub struct PathNode {
pub node_id: Uuid,
pub via_edge: Option<Uuid>,
pub depth: usize,
pub weight: f64,
pub name: Option<String>,
pub kind: Option<String>,
pub properties: Option<Value>,
}Expand description
One node along a traversal path.
Field naming (#148): JSON wire serialization is id. Enrichment (#162,
#1484): name/kind are filled from entity or note records by the runtime
layer after the storage call.
Optional enrichment: properties is populated by the runtime when the
caller passes include_properties=true to the traverse verb. It is
absent from the wire when None so the default result shape is unchanged.
Fields§
§node_id: Uuid§via_edge: Option<Uuid>§depth: usize§weight: f64Cumulative edge weight along the path that reached this node.
Not part of the wire shape — it exists so that GraphPath.total_weight
stays derivable after the node list is edited. Every layer above
storage edits that list (the visible-namespace merge, the merged limit
re-application, the soft-deleted-node screen), and a total_weight
carried forward from before an edit can end up describing a node the
caller was never shown.
name: Option<String>§kind: Option<String>§properties: Option<Value>