(id: i32, cake_id: Option<i32>)
| 463 | } |
| 464 | |
| 465 | fn fruit_model(id: i32, cake_id: Option<i32>) -> sea_orm::tests_cfg::fruit::Model { |
| 466 | let name = match id { |
| 467 | 1 => "apple", |
| 468 | 2 => "orange", |
| 469 | 3 => "grape", |
| 470 | 4 => "strawberry", |
| 471 | _ => "", |
| 472 | } |
| 473 | .to_string(); |
| 474 | sea_orm::tests_cfg::fruit::Model { id, name, cake_id } |
| 475 | } |
| 476 | |
| 477 | fn filling_model(id: i32) -> sea_orm::tests_cfg::filling::Model { |
| 478 | let name = match id { |
no outgoing calls