(&self, item: &mut ActiveModel)
| 14 | |
| 15 | impl Params { |
| 16 | fn update(&self, item: &mut ActiveModel) { |
| 17 | item.title = Set(self.title.clone()); |
| 18 | item.content = Set(self.content.clone()); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | async fn load_item(ctx: &AppContext, id: i32) -> Result<Model> { |