pub struct JsonPatchOp {
pub op: String,
pub path: String,
pub value: Option<Value>,
}Expand description
A JSON patch operation.
Fields§
§op: StringThe operation type (add, replace, remove, etc.)
path: StringThe path to apply the operation to.
value: Option<Value>The value for the operation.
Implementations§
Trait Implementations§
Source§impl Clone for JsonPatchOp
impl Clone for JsonPatchOp
Source§fn clone(&self) -> JsonPatchOp
fn clone(&self) -> JsonPatchOp
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 JsonPatchOp
impl Debug for JsonPatchOp
Source§impl<'de> Deserialize<'de> for JsonPatchOp
impl<'de> Deserialize<'de> for JsonPatchOp
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 JsonPatchOp
impl RefUnwindSafe for JsonPatchOp
impl Send for JsonPatchOp
impl Sync for JsonPatchOp
impl Unpin for JsonPatchOp
impl UnwindSafe for JsonPatchOp
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