pub enum DataClause {
Set(Vec<Assignment>),
Unset(Vec<Spanned<Idiom>>),
Content(Spanned<Expr>),
Merge(Spanned<Expr>),
Patch(Spanned<Expr>),
Replace(Spanned<Expr>),
Single(Spanned<Expr>),
Partial(PartialNode),
}Expand description
A mutation’s payload clause.
Variants§
Set(Vec<Assignment>)
SET a = 1, b = 2 — per-field assignments.
Unset(Vec<Spanned<Idiom>>)
UNSET a, b — fields to remove.
Content(Spanned<Expr>)
CONTENT <expr> — replace the row with the object.
Merge(Spanned<Expr>)
MERGE <expr> — shallow-merge the object into the row.
Patch(Spanned<Expr>)
PATCH <expr> — apply a JSON-patch array.
Replace(Spanned<Expr>)
REPLACE <expr> — overwrite the row with the object.
Single(Spanned<Expr>)
A bare value payload (e.g. INSERT INTO t $object).
Partial(PartialNode)
A payload clause that failed to lower.
Trait Implementations§
Source§impl Clone for DataClause
impl Clone for DataClause
Source§fn clone(&self) -> DataClause
fn clone(&self) -> DataClause
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 DataClause
impl Debug for DataClause
Source§impl PartialEq for DataClause
impl PartialEq for DataClause
impl StructuralPartialEq for DataClause
Auto Trait Implementations§
impl Freeze for DataClause
impl RefUnwindSafe for DataClause
impl Send for DataClause
impl Sync for DataClause
impl Unpin for DataClause
impl UnsafeUnpin for DataClause
impl UnwindSafe for DataClause
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