pub trait FromRow: Sized {
const REQUIRED_COLUMNS: &'static [&'static str];
// Required method
fn from_row(row: &Row) -> Result<Self, DbCoreError>;
}Required Associated Constants§
const REQUIRED_COLUMNS: &'static [&'static str]
Required Methods§
Sourcefn from_row(row: &Row) -> Result<Self, DbCoreError>
fn from_row(row: &Row) -> Result<Self, DbCoreError>
§Errors
Returns DbCoreError::RowMapping if a column cannot be read or converted.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".