Trait sea_orm::entity::TryIntoModel
source · [−]pub trait TryIntoModel<M>where
M: ModelTrait,{
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