pub struct Patch {
pub op: Op,
pub path: Option<String>,
pub value: Option<PatchValue>,
pub from: Option<String>,
}
Fields
op: Op
The operation.
path: Option<String>
The JSON Pointer to the target document location at which to complete the operation.
value: Option<PatchValue>
The value to apply. The remove
operation does not require a value.
from: Option<String>
The JSON Pointer to the target document location from which to move the value. Required for the move operation.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Patch
impl<'de> Deserialize<'de> for Patch
sourcefn 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 RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more