pub struct GraphMap(pub HashMap<String, GraphValue>);Expand description
Map typed as returned by RETURN {a: 1}
Tuple Fields§
§0: HashMap<String, GraphValue>Implementations§
Source§impl GraphMap
impl GraphMap
Sourcepub fn into_inner(self) -> HashMap<String, GraphValue>
pub fn into_inner(self) -> HashMap<String, GraphValue>
Take ownership of the underlying HashMap
Sourcepub fn get<T: FromGraphValue>(&self, key: &str) -> RedisResult<Option<T>>
pub fn get<T: FromGraphValue>(&self, key: &str) -> RedisResult<Option<T>>
Gets a value by its key and converts it to a given return type
Trait Implementations§
Source§impl FromGraphValue for GraphMap
impl FromGraphValue for GraphMap
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 GraphMap
impl FromRedisValue for GraphMap
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 GraphMap
Auto Trait Implementations§
impl Freeze for GraphMap
impl RefUnwindSafe for GraphMap
impl Send for GraphMap
impl Sync for GraphMap
impl Unpin for GraphMap
impl UnwindSafe for GraphMap
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