Struct json_patch::AddOperation
source · Expand description
JSON Patch ‘add’ operation representation
Fields§
§path: String
JSON-Pointer value RFC6901 that references a location within the target document where the operation is performed.
value: Value
Value to add to the target location.
Trait Implementations§
source§impl Clone for AddOperation
impl Clone for AddOperation
source§fn clone(&self) -> AddOperation
fn clone(&self) -> AddOperation
Returns a copy 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 AddOperation
impl Debug for AddOperation
source§impl<'de> Deserialize<'de> for AddOperation
impl<'de> Deserialize<'de> for AddOperation
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
source§impl PartialEq<AddOperation> for AddOperation
impl PartialEq<AddOperation> for AddOperation
source§fn eq(&self, other: &AddOperation) -> bool
fn eq(&self, other: &AddOperation) -> bool
source§impl Serialize for AddOperation
impl Serialize for AddOperation
impl Eq for AddOperation
impl StructuralEq for AddOperation
impl StructuralPartialEq for AddOperation
Auto Trait Implementations§
impl RefUnwindSafe for AddOperation
impl Send for AddOperation
impl Sync for AddOperation
impl Unpin for AddOperation
impl UnwindSafe for AddOperation
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.