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>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.