pub struct JsonPatch;Expand description
JSON Patch utilities (RFC6902)
Implementations§
Source§impl JsonPatch
impl JsonPatch
Sourcepub fn generate_case_sensitive(
from: &mut CJson,
to: &mut CJson,
) -> CJsonResult<CJson>
pub fn generate_case_sensitive( from: &mut CJson, to: &mut CJson, ) -> CJsonResult<CJson>
Sourcepub fn apply_case_sensitive(
object: &mut CJson,
patches: &CJson,
) -> CJsonResult<()>
pub fn apply_case_sensitive( object: &mut CJson, patches: &CJson, ) -> CJsonResult<()>
Sourcepub fn add_to_array(
array: &mut CJson,
operation: &str,
path: &str,
value: Option<&CJson>,
) -> CJsonResult<()>
pub fn add_to_array( array: &mut CJson, operation: &str, path: &str, value: Option<&CJson>, ) -> CJsonResult<()>
Add a patch operation to a patches array.
§Arguments
array- The array of patch operationsoperation- The operation type (“add”, “remove”, “replace”, “move”, “copy”, “test”)path- The JSON Pointer pathvalue- The value for the operation (optional for some operations)
Auto Trait Implementations§
impl Freeze for JsonPatch
impl RefUnwindSafe for JsonPatch
impl Send for JsonPatch
impl Sync for JsonPatch
impl Unpin for JsonPatch
impl UnsafeUnpin for JsonPatch
impl UnwindSafe for JsonPatch
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