pub enum Update {
Show 16 variants
Assign {
field: FieldId,
expr: Expr,
},
Increment {
field: FieldId,
amount: u64,
},
Decrement {
field: FieldId,
amount: u64,
},
MapInsert {
field: FieldId,
key: Expr,
value: Expr,
},
MapIncrement {
field: FieldId,
key: Expr,
amount: u64,
},
MapDecrement {
field: FieldId,
key: Expr,
amount: u64,
},
MapRemove {
field: FieldId,
key: Expr,
},
SetInsert {
field: FieldId,
value: Expr,
},
SetRemove {
field: FieldId,
value: Expr,
},
SeqAppend {
field: FieldId,
value: Expr,
},
SeqPrepend {
field: FieldId,
values: Expr,
},
SeqPopFront {
field: FieldId,
},
SeqRemoveValue {
field: FieldId,
value: Expr,
},
SeqRemoveAll {
field: FieldId,
values: Expr,
},
Conditional {
condition: Expr,
then_updates: Vec<Update>,
else_updates: Vec<Update>,
},
ForEach {
binding: String,
over: Expr,
updates: Vec<Update>,
},
}Variants§
Assign
Increment
Decrement
MapInsert
MapIncrement
MapDecrement
MapRemove
SetInsert
SetRemove
SeqAppend
SeqPrepend
SeqPopFront
SeqRemoveValue
SeqRemoveAll
Conditional
ForEach
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
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.