pub struct GraphPath {
pub nodes: Vec<Node>,
pub relationships: Vec<Relationship>,
}
Expand description
Type for graph paths as returned by MATCH p=(:A)-[:B]->(:C) RETURN p
Fields§
§nodes: Vec<Node>
Nodes of the GraphPath
relationships: Vec<Relationship>
Relationships of the GraphPath
Trait Implementations§
Source§impl FromGraphValue for GraphPath
impl FromGraphValue for GraphPath
Source§fn from_graph_value(value: GraphValue) -> RedisResult<Self>
fn from_graph_value(value: GraphValue) -> RedisResult<Self>
Converts the GraphValue to the implementing Type
Source§impl FromRedisValue for GraphPath
impl FromRedisValue for GraphPath
Source§fn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value
this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
Similar to
from_redis_value
but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.impl StructuralPartialEq for GraphPath
Auto Trait Implementations§
impl Freeze for GraphPath
impl RefUnwindSafe for GraphPath
impl Send for GraphPath
impl Sync for GraphPath
impl Unpin for GraphPath
impl UnwindSafe for GraphPath
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