Closed Oyelowo closed 1 year ago
object_partial
update
let updated = update::<Weapon>(id) .set(object_partial!(Weapon { strength: 923u64 })) .return_one(db.clone()) .await?;
Purposes
object_partial
macro mainly for setting values inupdate
statement