pub struct UpdateAssignment {
pub column: ColumnName,
pub value: Expr,
}Expand description
A column assignment for UPDATE SET or ON CONFLICT DO UPDATE SET.
Fields§
§column: ColumnNameThe column to update.
value: ExprThe value to assign.
Implementations§
Source§impl UpdateAssignment
impl UpdateAssignment
pub fn new(column: ColumnName, value: Expr) -> Self
Trait Implementations§
Source§impl Clone for UpdateAssignment
impl Clone for UpdateAssignment
Source§fn clone(&self) -> UpdateAssignment
fn clone(&self) -> UpdateAssignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UpdateAssignment
impl RefUnwindSafe for UpdateAssignment
impl Send for UpdateAssignment
impl Sync for UpdateAssignment
impl Unpin for UpdateAssignment
impl UnsafeUnpin for UpdateAssignment
impl UnwindSafe for UpdateAssignment
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