pub trait FromSqlRow<ST, DB: Backend>: Sized {
// Required method
fn build_from_row<'a>(row: &impl Row<'a, DB>) -> Result<Self>;
}
Expand description
Deserialize a database row into a rust data structure
Diesel provides wild card implementations of this trait for all types that implement one of the following traits:
Required Methods§
Sourcefn build_from_row<'a>(row: &impl Row<'a, DB>) -> Result<Self>
fn build_from_row<'a>(row: &impl Row<'a, DB>) -> Result<Self>
See the trait documentation.
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.