pub struct ReplaceOperation {
pub path: PointerBuf,
pub value: Value,
}
Expand description
JSON Patch ‘replace’ operation representation
Fields§
§path: PointerBuf
JSON-Pointer value RFC6901 that references a location within the target document where the operation is performed.
value: Value
Value to replace with.
Trait Implementations§
source§impl Clone for ReplaceOperation
impl Clone for ReplaceOperation
source§fn clone(&self) -> ReplaceOperation
fn clone(&self) -> ReplaceOperation
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 ReplaceOperation
impl Debug for ReplaceOperation
source§impl Default for ReplaceOperation
impl Default for ReplaceOperation
source§fn default() -> ReplaceOperation
fn default() -> ReplaceOperation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ReplaceOperation
impl<'de> Deserialize<'de> for ReplaceOperation
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 Display for ReplaceOperation
impl Display for ReplaceOperation
source§impl PartialEq for ReplaceOperation
impl PartialEq for ReplaceOperation
source§impl Serialize for ReplaceOperation
impl Serialize for ReplaceOperation
impl Eq for ReplaceOperation
impl StructuralPartialEq for ReplaceOperation
Auto Trait Implementations§
impl Freeze for ReplaceOperation
impl RefUnwindSafe for ReplaceOperation
impl Send for ReplaceOperation
impl Sync for ReplaceOperation
impl Unpin for ReplaceOperation
impl UnwindSafe for ReplaceOperation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)