Enum rustis::commands::GraphValue
source · pub enum GraphValue {
Null,
String(Vec<u8>),
Integer(i64),
Boolean(bool),
Double(f64),
Array(Vec<GraphValue>),
Edge(GraphEdge),
Node(GraphNode),
Path(GraphPath),
Map(HashMap<String, GraphValue>),
Point((f32, f32)),
}
redis-graph
only.Expand description
Object model for the different RedisGraph Data Types
Variants§
Null
In RedisGraph, null is used to stand in for an unknown or missing value.
String(Vec<u8>)
RedisGraph strings are Unicode character sequences.
Integer(i64)
All RedisGraph integers are treated as 64-bit signed integers.
Boolean(bool)
Boolean values are specified as true or false.
Double(f64)
All RedisGraph floating-point values are treated as 64-bit signed doubles.
Array(Vec<GraphValue>)
Arrays are ordered lists of elements.
Edge(GraphEdge)
Relationships are persistent graph elements that connect one node to another.
Node(GraphNode)
Nodes are persistent graph elements that can be connected to each other via relationships.
Path(GraphPath)
Paths are alternating sequences of nodes and edges, starting and ending with a node.
Map(HashMap<String, GraphValue>)
Maps are order-agnostic collections of key-value pairs.
Point((f32, f32))
The Point data type is a set of latitude/longitude coordinates, stored within RedisGraph as a pair of 32-bit floats.
Implementations§
source§impl GraphValue
impl GraphValue
sourcepub fn into<T>(self) -> Result<T>where
T: FromGraphValue,
pub fn into<T>(self) -> Result<T>where
T: FromGraphValue,
A GraphValue
to user type conversion that consumes the input value.
§Errors
Any parsing error (Error::Client
) due to incompatibility between Value variant and taget type
Trait Implementations§
source§impl Clone for GraphValue
impl Clone for GraphValue
source§fn clone(&self) -> GraphValue
fn clone(&self) -> GraphValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GraphValue
impl Debug for GraphValue
source§impl<'de> Deserialize<'de> for GraphValue
impl<'de> Deserialize<'de> for GraphValue
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>,
source§impl PartialEq for GraphValue
impl PartialEq for GraphValue
source§fn eq(&self, other: &GraphValue) -> bool
fn eq(&self, other: &GraphValue) -> bool
self
and other
values to be equal, and is used
by ==
.