pub enum UpdateData {
Set(Vec<(Idiom, Expr)>),
Unset(Vec<Idiom>),
Content(Expr),
}Expand description
The data a MutationStage::Update applies. Every Expr is binding-row
scoped (the same a.x → Idiom[Field("a"),Field("x")] rule the read side
uses) and is evaluated against the current binding row before the write.
Variants§
Set(Vec<(Idiom, Expr)>)
SET a.p = v (one assignment per item): set each field path.
Unset(Vec<Idiom>)
REMOVE a.p (one path per item): unset each field.
Content(Expr)
SET a = {…}: replace all user properties with the object expression
(the record’s id, and an edge’s in/out, are preserved by the
native CONTENT path).
Trait Implementations§
Source§impl Clone for UpdateData
impl Clone for UpdateData
Source§impl Debug for UpdateData
impl Debug for UpdateData
impl Eq for UpdateData
Source§impl Hash for UpdateData
impl Hash for UpdateData
Source§impl PartialEq for UpdateData
impl PartialEq for UpdateData
impl StructuralPartialEq for UpdateData
Auto Trait Implementations§
impl !Freeze for UpdateData
impl RefUnwindSafe for UpdateData
impl Send for UpdateData
impl Sync for UpdateData
impl Unpin for UpdateData
impl UnsafeUnpin for UpdateData
impl UnwindSafe for UpdateData
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.