pub enum DocUpdateMutation {
Set {
path: Vec<u8>,
value: Vec<u8>,
},
Del {
path: Vec<u8>,
},
Incr {
path: Vec<u8>,
delta: f64,
},
Push {
path: Vec<u8>,
value: Vec<u8>,
},
Pull {
path: Vec<u8>,
value: Vec<u8>,
},
}Expand description
One DOC.UPDATE mutation operation.
Variants§
Set
SET path value — set path to JSON value.
Del
DEL path — remove path.
Incr
INCR path delta — increment numeric value at path.
Push
PUSH path value — append JSON value to array at path.
Pull
PULL path value — remove matching JSON value(s) from array at path.
Trait Implementations§
Source§impl Clone for DocUpdateMutation
impl Clone for DocUpdateMutation
Source§fn clone(&self) -> DocUpdateMutation
fn clone(&self) -> DocUpdateMutation
Returns a duplicate of the value. Read more
1.0.0 · 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 DocUpdateMutation
impl Debug for DocUpdateMutation
Source§impl PartialEq for DocUpdateMutation
impl PartialEq for DocUpdateMutation
impl StructuralPartialEq for DocUpdateMutation
Auto Trait Implementations§
impl Freeze for DocUpdateMutation
impl RefUnwindSafe for DocUpdateMutation
impl Send for DocUpdateMutation
impl Sync for DocUpdateMutation
impl Unpin for DocUpdateMutation
impl UnsafeUnpin for DocUpdateMutation
impl UnwindSafe for DocUpdateMutation
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