Struct ory_hydra_client::models::json_patch::JsonPatch
source · pub struct JsonPatch {
pub from: Option<String>,
pub op: String,
pub path: String,
pub value: Option<Value>,
}
Expand description
JsonPatch : A JSONPatch document as defined by RFC 6902
Fields§
§from: Option<String>
This field is used together with operation "move" and uses JSON Pointer notation. Learn more about JSON Pointers.
op: String
The operation to be performed. One of "add", "remove", "replace", "move", "copy", or "test".
path: String
The path to the target path. Uses JSON pointer notation. Learn more about JSON Pointers.
value: Option<Value>
The value to be used within the operations. Learn more about JSON Pointers.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for JsonPatch
impl<'de> Deserialize<'de> for JsonPatch
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
source§impl PartialEq for JsonPatch
impl PartialEq for JsonPatch
impl StructuralPartialEq for JsonPatch
Auto Trait Implementations§
impl RefUnwindSafe for JsonPatch
impl Send for JsonPatch
impl Sync for JsonPatch
impl Unpin 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