pub enum PatchOp {
Add {
path: String,
value: Value,
},
Replace {
path: String,
value: Value,
},
Remove {
path: String,
},
}Expand description
JSON patch operation (RFC 6902 format)
Variants§
Add
Add a new value at the specified path
Replace
Replace the value at the specified path
Remove
Remove the value at the specified path
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PatchOp
impl<'de> Deserialize<'de> for PatchOp
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 PatchOp
impl RefUnwindSafe for PatchOp
impl Send for PatchOp
impl Sync for PatchOp
impl Unpin for PatchOp
impl UnwindSafe for PatchOp
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