pub struct UpdateStmt {
pub table: TableName,
pub assignments: Vec<UpdateAssignment>,
pub where_: Option<Expr>,
pub returning: Vec<ColumnName>,
}Expand description
An UPDATE statement.
Fields§
§table: TableNameThe table to update.
assignments: Vec<UpdateAssignment>Column assignments (SET clause).
where_: Option<Expr>Optional WHERE clause filter.
returning: Vec<ColumnName>Columns to return after update (RETURNING clause).
Implementations§
Source§impl UpdateStmt
impl UpdateStmt
Trait Implementations§
Source§impl Clone for UpdateStmt
impl Clone for UpdateStmt
Source§fn clone(&self) -> UpdateStmt
fn clone(&self) -> UpdateStmt
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 moreSource§impl Debug for UpdateStmt
impl Debug for UpdateStmt
Source§impl Render for UpdateStmt
impl Render for UpdateStmt
Auto Trait Implementations§
impl Freeze for UpdateStmt
impl RefUnwindSafe for UpdateStmt
impl Send for UpdateStmt
impl Sync for UpdateStmt
impl Unpin for UpdateStmt
impl UnsafeUnpin for UpdateStmt
impl UnwindSafe for UpdateStmt
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