[−][src]Struct redisgraph::result_set::ResultSet
A result set returned by RedisGraph in response to a query.
Fields
columns: Vec<Column>
The columns of this result set.
Empty if the response did not contain any return values.
statistics: Statistics
Contains statistics messages from the response.
Methods
impl ResultSet
[src]
pub fn num_columns(&self) -> usize
[src]
Returns the number of rows in the result set.
pub fn num_rows(&self) -> usize
[src]
Returns the number of columns in the result set.
pub fn get_scalar(
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Scalar>
[src]
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Scalar>
Returns the scalar at the given position.
Returns an error if the value at the given position is not a scalar or if the position is out of bounds.
pub fn get_node(
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Node>
[src]
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Node>
Returns the node at the given position.
Returns an error if the value at the given position is not a node or if the position is out of bounds.
pub fn get_relation(
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Relation>
[src]
&self,
row_idx: usize,
column_idx: usize
) -> RedisGraphResult<&Relation>
Returns the relation at the given position.
Returns an error if the value at the given position is not a relation or if the position is out of bounds.
Trait Implementations
impl Clone for ResultSet
[src]
impl Debug for ResultSet
[src]
impl FromRedisValueWithGraph for ResultSet
[src]
fn from_redis_value_with_graph(
value: Value,
graph: &Graph
) -> RedisGraphResult<Self>
[src]
value: Value,
graph: &Graph
) -> RedisGraphResult<Self>
impl PartialEq<ResultSet> for ResultSet
[src]
impl StructuralPartialEq for ResultSet
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnwindSafe for ResultSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromRedisValueWithGraph for T where
T: FromRedisValue,
[src]
T: FromRedisValue,
fn from_redis_value_with_graph(Value, &Graph) -> Result<T, RedisGraphError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,