pub struct UpdatePlan {
pub table: Ident,
pub assignments: Vec<(Ident, Expr)>,
pub filter: Option<Expr>,
pub returning: Vec<Ident>,
}Expand description
UPDATE table SET .. WHERE ...
Fields§
§table: IdentTarget table.
assignments: Vec<(Ident, Expr)>column = expression pairs (expressions allow F-style updates).
filter: Option<Expr>Row filter; None updates every row.
returning: Vec<Ident>Columns to return.
Trait Implementations§
Source§impl Clone for UpdatePlan
impl Clone for UpdatePlan
Source§fn clone(&self) -> UpdatePlan
fn clone(&self) -> UpdatePlan
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 UpdatePlan
impl Debug for UpdatePlan
Source§impl PartialEq for UpdatePlan
impl PartialEq for UpdatePlan
impl StructuralPartialEq for UpdatePlan
Auto Trait Implementations§
impl Freeze for UpdatePlan
impl RefUnwindSafe for UpdatePlan
impl Send for UpdatePlan
impl Sync for UpdatePlan
impl Unpin for UpdatePlan
impl UnsafeUnpin for UpdatePlan
impl UnwindSafe for UpdatePlan
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