pub struct UpdateByKey {
pub table: TableId,
pub keys: Vec<Value>,
pub assignments: Assignments,
pub filter: Option<Expr>,
pub condition: Option<Expr>,
pub returning: bool,
}Fields§
§table: TableIdWhich table to update
keys: Vec<Value>Which keys to update
assignments: AssignmentsHow to update the table
filter: Option<Expr>Only update keys that match the filter
condition: Option<Expr>Any conditions that must hold to apply the update
returning: boolIf true, then the driver should return a record for each instance of the model that was updated.
Trait Implementations§
Source§impl Clone for UpdateByKey
impl Clone for UpdateByKey
Source§fn clone(&self) -> UpdateByKey
fn clone(&self) -> UpdateByKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateByKey
impl Debug for UpdateByKey
Source§impl From<UpdateByKey> for Operation
impl From<UpdateByKey> for Operation
Source§fn from(value: UpdateByKey) -> Self
fn from(value: UpdateByKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateByKey
impl RefUnwindSafe for UpdateByKey
impl Send for UpdateByKey
impl Sync for UpdateByKey
impl Unpin for UpdateByKey
impl UnwindSafe for UpdateByKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more