Trait FromQueryResult

Source
pub trait FromQueryResult: ModelData + Sized {
    type Mapping: FromQueryResultMapping<Self>;

    // Required method
    fn from_mapping_and_row(
        mapping: &Self::Mapping,
        row: &mut Vec<Value>,
    ) -> Result<Self, ParseError>;
}

Required Associated Types§

Required Methods§

Source

fn from_mapping_and_row( mapping: &Self::Mapping, row: &mut Vec<Value>, ) -> Result<Self, ParseError>

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.

Implementations on Foreign Types§

Source§

impl FromQueryResult for Vec<Value>

Source§

type Mapping = EmptyMapping

Source§

fn from_mapping_and_row( mapping: &Self::Mapping, row: &mut Vec<Value>, ) -> Result<Self, ParseError>

Implementors§