pub struct EdgeData {
pub variable: Option<String>,
pub rel_type: Option<String>,
pub properties: HashMap<String, CypherValue>,
}Expand description
Data stored at each edge in the graph built by build_graph_from_cypher.
Fields§
§variable: Option<String>Bound variable name from the Cypher pattern (e.g. "r"), if present.
rel_type: Option<String>Relationship type (e.g. "KNOWS"), if specified.
properties: HashMap<String, CypherValue>Properties specified in the relationship pattern.
Trait Implementations§
Source§impl CypherEdge for EdgeData
impl CypherEdge for EdgeData
Source§fn has_rel_type(&self, rel_type: &str) -> bool
fn has_rel_type(&self, rel_type: &str) -> bool
Returns whether this edge matches the requested relationship type.
Source§fn from_cypher(
variable: Option<String>,
rel_type: Option<String>,
properties: HashMap<String, CypherValue>,
) -> Self
fn from_cypher( variable: Option<String>, rel_type: Option<String>, properties: HashMap<String, CypherValue>, ) -> Self
Construct an edge value from a Cypher pattern.
Source§impl CypherProperties for EdgeData
impl CypherProperties for EdgeData
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 EdgeData
Auto Trait Implementations§
impl Freeze for EdgeData
impl RefUnwindSafe for EdgeData
impl Send for EdgeData
impl Sync for EdgeData
impl Unpin for EdgeData
impl UnsafeUnpin for EdgeData
impl UnwindSafe for EdgeData
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