pub trait FromSqlxRow: Sized {
// Required method
fn from_row(row: SqlxRow) -> SqlxResult<Self>;
}Expand description
Trait for converting SQL rows to model types.
Required Methods§
Sourcefn from_row(row: SqlxRow) -> SqlxResult<Self>
fn from_row(row: SqlxRow) -> SqlxResult<Self>
Convert a row to a model instance.
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.