Trait diesel::deserialize::FromSqlRow
source · 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.