[−][src]Struct wasccgraph_common::ResultSet
Represents the return data from a graph. You shouldn't have to use this type directly, but rather extract rows and columns via vectors of tuples and pattern matching/destructing
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.
Implementations
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
) -> GraphResult<&Scalar>
[src]
&self,
row_idx: usize,
column_idx: usize
) -> GraphResult<&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) -> GraphResult<&Node>
[src]
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
) -> GraphResult<&Relation>
[src]
&self,
row_idx: usize,
column_idx: usize
) -> GraphResult<&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<'de> Deserialize<'de> for ResultSet
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl FromTable for ResultSet
[src]
fn from_table(result_set: &ResultSet) -> GraphResult<Self>
[src]
impl PartialEq<ResultSet> for ResultSet
[src]
impl Serialize for ResultSet
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> FromTable for T where
T: FromRow,
[src]
T: FromRow,
fn from_table(&ResultSet) -> Result<T, GraphError>
[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>,