Expand description
PatchOperation : Individual JSON Patch operation for an HTTP PATCH request.
Fields
op: OpType of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See https://tools.ietf.org/html/rfc6902.
path: StringJSON Pointer path of the element to patch. See https://tools.ietf.org/html/rfc6902.
value: Option<Vec<Value>>JSON value to add, replace, or delete.
Implementations
sourceimpl PatchOperation
impl PatchOperation
sourcepub fn new(op: Op, path: String) -> PatchOperation
pub fn new(op: Op, path: String) -> PatchOperation
Individual JSON Patch operation for an HTTP PATCH request.
Trait Implementations
sourceimpl Clone for PatchOperation
impl Clone for PatchOperation
sourcefn clone(&self) -> PatchOperation
fn clone(&self) -> PatchOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PatchOperation
impl Debug for PatchOperation
sourceimpl Default for PatchOperation
impl Default for PatchOperation
sourcefn default() -> PatchOperation
fn default() -> PatchOperation
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PatchOperation
impl<'de> Deserialize<'de> for PatchOperation
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
sourceimpl PartialEq<PatchOperation> for PatchOperation
impl PartialEq<PatchOperation> for PatchOperation
sourcefn eq(&self, other: &PatchOperation) -> bool
fn eq(&self, other: &PatchOperation) -> bool
sourceimpl Serialize for PatchOperation
impl Serialize for PatchOperation
impl StructuralPartialEq for PatchOperation
Auto Trait Implementations
impl RefUnwindSafe for PatchOperation
impl Send for PatchOperation
impl Sync for PatchOperation
impl Unpin for PatchOperation
impl UnwindSafe for PatchOperation
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