pub struct Update {
pub with: Option<With>,
pub or_conflict: Option<ResolveType>,
pub tbl_name: QualifiedName,
pub indexed: Option<Indexed>,
pub sets: Vec<Set>,
pub from: Option<FromClause>,
pub where_clause: Option<Box<Expr>>,
pub returning: Option<Vec<ResultColumn>>,
pub order_by: Option<Vec<SortedColumn>>,
pub limit: Option<Box<Limit>>,
}Expand description
UPDATE clause
Fields§
§with: Option<With>CTE
or_conflict: Option<ResolveType>OR
tbl_name: QualifiedNametable name
indexed: Option<Indexed>INDEXED
sets: Vec<Set>SET assignments
from: Option<FromClause>FROM
where_clause: Option<Box<Expr>>WHERE clause
returning: Option<Vec<ResultColumn>>RETURNING
order_by: Option<Vec<SortedColumn>>ORDER BY
limit: Option<Box<Limit>>LIMIT
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
Source§impl ToSqlString for Update
impl ToSqlString for Update
Source§fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
fn to_sql_string<C: ToSqlContext>(&self, context: &C) -> String
Convert the given value to String
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.