pub struct NodeData {
pub variable: Option<String>,
pub labels: Vec<String>,
pub properties: HashMap<String, CypherValue>,
}Expand description
Data stored at each node in the graph built by build_graph_from_cypher.
Fields§
§variable: Option<String>Bound variable name from the Cypher pattern (e.g. "n"), if present.
labels: Vec<String>Node labels (e.g. ["Person", "Employee"]).
properties: HashMap<String, CypherValue>Properties specified in the node pattern.
Trait Implementations§
Source§impl CypherNode for NodeData
impl CypherNode for NodeData
Source§fn from_cypher(
variable: Option<String>,
labels: Vec<String>,
properties: HashMap<String, CypherValue>,
) -> Self
fn from_cypher( variable: Option<String>, labels: Vec<String>, properties: HashMap<String, CypherValue>, ) -> Self
Construct a node value from a Cypher pattern.
Source§impl CypherProperties for NodeData
impl CypherProperties for NodeData
Source§fn properties(&self) -> HashMap<String, CypherValue>
fn properties(&self) -> HashMap<String, CypherValue>
Return all properties as a cloned map for query results.
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnsafeUnpin for NodeData
impl UnwindSafe for NodeData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more