pub struct DebugPatch {
pub op: String,
pub path: String,
pub value: Option<Value>,
pub from: Option<String>,
}Expand description
JSON Patch operation for applying a debug suggestion
Fields§
§op: StringPatch operation type: “add”, “remove”, or “replace”
path: StringJSON Pointer path to the field to modify
value: Option<Value>Value to add or replace (for “add” and “replace” operations)
from: Option<String>Source path for “move” or “copy” operations
Trait Implementations§
Source§impl Clone for DebugPatch
impl Clone for DebugPatch
Source§fn clone(&self) -> DebugPatch
fn clone(&self) -> DebugPatch
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 DebugPatch
impl Debug for DebugPatch
Source§impl<'de> Deserialize<'de> for DebugPatch
impl<'de> Deserialize<'de> for DebugPatch
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
Auto Trait Implementations§
impl Freeze for DebugPatch
impl RefUnwindSafe for DebugPatch
impl Send for DebugPatch
impl Sync for DebugPatch
impl Unpin for DebugPatch
impl UnsafeUnpin for DebugPatch
impl UnwindSafe for DebugPatch
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