Struct redis_graph::RelationValue [−][src]
pub struct RelationValue {
pub id: u64,
pub rel_type: String,
pub src_node: u64,
pub dest_node: u64,
pub properties: HashMap<String, Value>,
}Expand description
Represents a Redis graph relation between two nodes. Like a node it can potentially contain one or multiple named fields.
Fields
id: u64rel_type: Stringsrc_node: u64dest_node: u64properties: HashMap<String, Value>Trait Implementations
Returns the “default value” for a type. Read more
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. Read more
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. Read more
Allows property extraction on RelationValues.
Returns a raw Redis value at key.
Extracts a property Redis value at key into an Option of the desired type. Will return None in case the key did not exists. Will return an error in case the value at key failed to be parsed into T. Read more
Extracts a property Redis value at key into an Option of the desired type. Will return None in case of the key did not exist or the value at key failed to be parsed into T. Read more
Auto Trait Implementations
impl RefUnwindSafe for RelationValue
impl Send for RelationValue
impl Sync for RelationValue
impl Unpin for RelationValue
impl UnwindSafe for RelationValue
Blanket Implementations
Mutably borrows from an owned value. Read more
