pub trait FromAnyRow: Sized {
// Required methods
fn from_any_row(row: &AnyRow) -> Result<Self, Error>;
fn from_any_row_at(row: &AnyRow, index: &mut usize) -> Result<Self, Error>;
}Expand description
A trait for types that can be mapped from an AnyRow.
Required Methods§
Sourcefn from_any_row(row: &AnyRow) -> Result<Self, Error>
fn from_any_row(row: &AnyRow) -> Result<Self, Error>
Constructs the type from the whole row.
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.