Enhancements
- [sea-orm-macros]
impl From<Model> for ActiveModel
instead ofimpl From<<Entity as sea_orm::EntityTrait>::Model> for ActiveModel
#2349.
Now the following can compile:
use sea_orm::{tests_cfg::cake, Set};
struct Cake {
id: i32,
name: String,
}
impl From<Cake> for cake::ActiveModel {
fn from(value: Cake) -> Self {
Self {
id: Set(value.id),
name: Set(value.name),
}
}
}