Trait taos_query::prelude::sync::Fetchable
source · pub trait Fetchable: Sized {
// Required methods
fn affected_rows(&self) -> i32;
fn precision(&self) -> Precision;
fn fields(&self) -> &[Field];
fn summary(&self) -> (usize, usize);
// Provided methods
fn num_of_fields(&self) -> usize { ... }
fn blocks(&mut self) -> IBlockIter<'_, Self> ⓘ { ... }
fn rows(&mut self) -> IRowsIter<'_, Self> ⓘ { ... }
fn deserialize<T: DeserializeOwned>(
&mut self
) -> Map<IRowsIter<'_, Self>, fn(_: RawResult<RowView<'_>>) -> RawResult<T>> { ... }
fn to_rows_vec(&mut self) -> RawResult<Vec<Vec<Value>>> { ... }
}
Required Methods§
fn affected_rows(&self) -> i32
fn precision(&self) -> Precision
fn fields(&self) -> &[Field]
fn summary(&self) -> (usize, usize)
Provided Methods§
fn num_of_fields(&self) -> usize
sourcefn blocks(&mut self) -> IBlockIter<'_, Self> ⓘ
fn blocks(&mut self) -> IBlockIter<'_, Self> ⓘ
Iterator for raw data blocks.
fn deserialize<T: DeserializeOwned>( &mut self ) -> Map<IRowsIter<'_, Self>, fn(_: RawResult<RowView<'_>>) -> RawResult<T>>
fn to_rows_vec(&mut self) -> RawResult<Vec<Vec<Value>>>
Object Safety§
This trait is not object safe.