Skip to main content

FromRow

Trait FromRow 

Source
pub trait FromRow: Sized {
    const REQUIRED_COLUMNS: &'static [&'static str];

    // Required method
    fn from_row(row: &Row) -> Result<Self, DbCoreError>;
}

Required Associated Constants§

Source

const REQUIRED_COLUMNS: &'static [&'static str]

Required Methods§

Source

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".

Implementors§