pub enum YamlPatchOperation {
Add {
path: JsonPointer,
value: YamlFragment,
},
Remove {
path: JsonPointer,
},
Replace {
path: JsonPointer,
value: YamlFragment,
},
Move {
from: JsonPointer,
path: JsonPointer,
},
Copy {
from: JsonPointer,
path: JsonPointer,
},
Test {
path: JsonPointer,
value: YamlFragment,
},
}Expand description
One YAML patch operation.
Variants§
Add
Adds a value, replacing an existing mapping member when present.
Remove
Removes an existing value.
Fields
§
path: JsonPointerTarget JSON Pointer.
Replace
Replaces an existing value.
Move
Moves an existing value.
Copy
Copies an existing value.
Test
Tests semantic equality without changing the document.
Trait Implementations§
Source§impl Clone for YamlPatchOperation
impl Clone for YamlPatchOperation
Source§fn clone(&self) -> YamlPatchOperation
fn clone(&self) -> YamlPatchOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 YamlPatchOperation
impl Debug for YamlPatchOperation
impl Eq for YamlPatchOperation
Source§impl PartialEq for YamlPatchOperation
impl PartialEq for YamlPatchOperation
impl StructuralPartialEq for YamlPatchOperation
Auto Trait Implementations§
impl Freeze for YamlPatchOperation
impl RefUnwindSafe for YamlPatchOperation
impl Send for YamlPatchOperation
impl Sync for YamlPatchOperation
impl Unpin for YamlPatchOperation
impl UnsafeUnpin for YamlPatchOperation
impl UnwindSafe for YamlPatchOperation
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