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§
type Mapping: FromQueryResultMapping<Self>
Required Methods§
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.