Enum redis_graph::GraphValue
source · pub enum GraphValue {
Scalar(Value),
Node(NodeValue),
Relation(RelationValue),
}
Expand description
Redis graph values can be one of 3 different types. Scalars are single values of any type supported by Redis. Nodes are sort of objects which can contain multiple name value pairs and Relations are relations between Nodes which themself can contain multiple name value pairs.
Variants§
Trait Implementations§
source§impl Clone for GraphValue
impl Clone for GraphValue
source§fn clone(&self) -> GraphValue
fn clone(&self) -> GraphValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GraphValue
impl Debug for GraphValue
source§impl FromRedisValue for GraphValue
impl FromRedisValue for GraphValue
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, Global>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self, Global>, 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.Auto Trait Implementations§
impl RefUnwindSafe for GraphValue
impl Send for GraphValue
impl Sync for GraphValue
impl Unpin for GraphValue
impl UnwindSafe for GraphValue
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