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

Implementations on Foreign Types§

source§

impl TryIntoModel<<Entity as EntityTrait>::Model> for ActiveModel

Implementors§

source§

impl TryIntoModel<<Entity as EntityTrait>::Model> for leetcode_tui_rs::entities::question::ActiveModel

source§

impl TryIntoModel<<Entity as EntityTrait>::Model> for leetcode_tui_rs::entities::question_topic_tag::ActiveModel

source§

impl TryIntoModel<<Entity as EntityTrait>::Model> for leetcode_tui_rs::entities::topic_tag::ActiveModel

source§

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