pub trait TryIntoModel<M>where
M: ModelTrait,{
// Required method
fn try_into_model(self) -> Result<M, DbErr>;
}
Expand description
A Trait for any type that can be converted into an Model
Required Methods§
Sourcefn try_into_model(self) -> Result<M, DbErr>
fn try_into_model(self) -> Result<M, DbErr>
Method to call to perform the conversion