pub struct SelectionResults { /* private fields */ }
Expand description
Data structure for PQL selection result
Implementations§
Source§impl SelectionResults
impl SelectionResults
pub fn new(columns: Vec<String>, results: Vec<Vec<Value>>) -> Self
Sourcepub fn get_results_count(&self) -> usize
pub fn get_results_count(&self) -> usize
Returns how many rows in the ResultTable
Sourcepub fn get_column_count(&self) -> usize
pub fn get_column_count(&self) -> usize
Returns how many columns in the ResultTable
Sourcepub fn get_column_name(&self, column_index: usize) -> Result<&str>
pub fn get_column_name(&self, column_index: usize) -> Result<&str>
Returns column name given column index
Trait Implementations§
Source§impl Clone for SelectionResults
impl Clone for SelectionResults
Source§fn clone(&self) -> SelectionResults
fn clone(&self) -> SelectionResults
Returns a duplicate 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 SelectionResults
impl Debug for SelectionResults
Source§impl<'de> Deserialize<'de> for SelectionResults
impl<'de> Deserialize<'de> for SelectionResults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SelectionResults
impl PartialEq for SelectionResults
Source§impl Serialize for SelectionResults
impl Serialize for SelectionResults
impl Eq for SelectionResults
impl StructuralPartialEq for SelectionResults
Auto Trait Implementations§
impl Freeze for SelectionResults
impl RefUnwindSafe for SelectionResults
impl Send for SelectionResults
impl Sync for SelectionResults
impl Unpin for SelectionResults
impl UnwindSafe for SelectionResults
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.