pub enum Op {
Set {
path: Path,
value: Repr,
},
Insert {
path: Path,
index: u32,
value: Repr,
},
Remove {
path: Path,
index: u32,
},
Put {
path: Path,
key: Repr,
value: Repr,
},
Drop {
path: Path,
key: Repr,
},
}Expand description
One change to the state a client holds.
Variants§
Set
Replace whatever is at path. The fallback for a scalar, and for any two values whose
shapes differ enough that describing the difference would cost more than the value.
Insert
Insert into the list at path, before index.
Remove
Remove element index of the list at path.
Put
Put an entry in the map at path.
Drop
Drop an entry from the map at path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Op
impl<'de> Deserialize<'de> for Op
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
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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