pub enum UpdateOp {
Set {
path: FieldPath,
value: Option<Value>,
},
Merge {
path: Option<FieldPath>,
value: Value,
},
Increment {
path: FieldPath,
by: i64,
},
Decrement {
path: FieldPath,
by: i64,
},
Remove {
path: FieldPath,
},
}Expand description
Operations that can be performed atomically on a stream value
Variants§
Set
Set a value at path (overwrite)
Merge
Merge object into existing value (object-only)
Increment
Increment numeric value
Decrement
Decrement numeric value
Remove
Remove a field
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateOp
impl<'de> Deserialize<'de> for UpdateOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateOp
impl RefUnwindSafe for UpdateOp
impl Send for UpdateOp
impl Sync for UpdateOp
impl Unpin for UpdateOp
impl UnwindSafe for UpdateOp
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