pub struct GraphResultSet {
pub header: Vec<String>,
pub data: Vec<GraphResult>,
pub metadata: Vec<String>,
}
Expand description
Contains the result of a Redis graph operation. All types of graph operations will return a result in this format. Some (for example CREATE) will only return data for select fields.
Fields§
§header: Vec<String>
A list of string keys occuring in the RETURN statement of a query.
data: Vec<GraphResult>
A list of GraphResults with one entry per match of the query.
metadata: Vec<String>
List of metadata returned with the query (eg. affected rows).
Trait Implementations§
Source§impl Clone for GraphResultSet
impl Clone for GraphResultSet
Source§fn clone(&self) -> GraphResultSet
fn clone(&self) -> GraphResultSet
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 GraphResultSet
impl Debug for GraphResultSet
Source§impl Default for GraphResultSet
impl Default for GraphResultSet
Source§fn default() -> GraphResultSet
fn default() -> GraphResultSet
Returns the “default value” for a type. Read more
Source§impl FromRedisValue for GraphResultSet
impl FromRedisValue for GraphResultSet
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.Auto Trait Implementations§
impl Freeze for GraphResultSet
impl RefUnwindSafe for GraphResultSet
impl Send for GraphResultSet
impl Sync for GraphResultSet
impl Unpin for GraphResultSet
impl UnwindSafe for GraphResultSet
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