pub struct UpdateStatement {
pub with: Option<WithClause>,
pub or_conflict: Option<ConflictAction>,
pub table: QualifiedTableRef,
pub assignments: Vec<Assignment>,
pub from: Option<FromClause>,
pub where_clause: Option<Expr>,
pub returning: Vec<ResultColumn>,
pub order_by: Vec<OrderingTerm>,
pub limit: Option<LimitClause>,
}Expand description
An UPDATE statement.
Fields§
§with: Option<WithClause>Optional WITH clause.
or_conflict: Option<ConflictAction>UPDATE OR conflict_action.
table: QualifiedTableRefTarget table.
assignments: Vec<Assignment>SET assignments.
from: Option<FromClause>Optional FROM clause (SQLite 3.33+).
where_clause: Option<Expr>WHERE clause.
returning: Vec<ResultColumn>RETURNING clause.
order_by: Vec<OrderingTerm>ORDER BY (only with LIMIT).
limit: Option<LimitClause>LIMIT clause.
Trait Implementations§
Source§impl Clone for UpdateStatement
impl Clone for UpdateStatement
Source§fn clone(&self) -> UpdateStatement
fn clone(&self) -> UpdateStatement
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 UpdateStatement
impl Debug for UpdateStatement
Source§impl Display for UpdateStatement
impl Display for UpdateStatement
Source§impl PartialEq for UpdateStatement
impl PartialEq for UpdateStatement
impl StructuralPartialEq for UpdateStatement
Auto Trait Implementations§
impl !Freeze for UpdateStatement
impl RefUnwindSafe for UpdateStatement
impl Send for UpdateStatement
impl Sync for UpdateStatement
impl Unpin for UpdateStatement
impl UnsafeUnpin for UpdateStatement
impl UnwindSafe for UpdateStatement
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