* Use input ident instead of associated type projections in ActiveModel derive * Add a test
16 lines
260 B
Rust
16 lines
260 B
Rust
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),
|
|
}
|
|
}
|
|
}
|