Fetchable

Trait 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§

Source

fn affected_rows(&self) -> i32

Source

fn precision(&self) -> Precision

Source

fn fields(&self) -> &[Field]

Source

fn summary(&self) -> (usize, usize)

Provided Methods§

Source

fn num_of_fields(&self) -> usize

Source

fn blocks(&mut self) -> IBlockIter<'_, Self>

Iterator for raw data blocks.

Source

fn rows(&mut self) -> IRowsIter<'_, Self>

Iterator for querying by rows.

Source

fn deserialize<T: DeserializeOwned>( &mut self, ) -> Map<IRowsIter<'_, Self>, fn(RawResult<RowView<'_>>) -> RawResult<T>>

Source

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.

Implementors§