pub enum MutationOp {
Set(Vec<u8>),
Increment(i64),
Append(Vec<u8>),
Merge(Vec<u8>),
Delete,
Blend {
value: Vec<u8>,
weight: f32,
},
}Expand description
Mutation operation
Variants§
Set(Vec<u8>)
Set/replace value
Increment(i64)
Increment counter
Append(Vec<u8>)
Append to list
Merge(Vec<u8>)
Merge (CRDT-style)
Delete
Delete
Blend
Blend (for continuous state)
Implementations§
Trait Implementations§
Source§impl Clone for MutationOp
impl Clone for MutationOp
Source§fn clone(&self) -> MutationOp
fn clone(&self) -> MutationOp
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 moreAuto Trait Implementations§
impl Freeze for MutationOp
impl RefUnwindSafe for MutationOp
impl Send for MutationOp
impl Sync for MutationOp
impl Unpin for MutationOp
impl UnwindSafe for MutationOp
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