pub struct PathNode {
pub node_id: Uuid,
pub via_edge: Option<Uuid>,
pub depth: usize,
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):
name/kind are filled 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§name: Option<String>§kind: Option<String>§properties: Option<Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathNode
impl<'de> Deserialize<'de> for PathNode
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 PathNode
impl RefUnwindSafe for PathNode
impl Send for PathNode
impl Sync for PathNode
impl Unpin for PathNode
impl UnsafeUnpin for PathNode
impl UnwindSafe for PathNode
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