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§

source

fn try_into_model(self) -> Result<M, DbErr>

Method to call to perform the conversion

Implementors§

source§

impl<M> TryIntoModel<M> for M
where M: ModelTrait,