Struct ory_client::models::json_patch::JsonPatch
source · pub struct JsonPatch {
pub from: Option<String>,
pub op: OpEnum,
pub path: String,
pub value: Option<Value>,
}
Expand description
JsonPatch : JSON Patch allows you to target individual keys in a JSON document for updates. For more examples see: https://jsonpatch.com
Fields§
§from: Option<String>
This field is used together with operation "move" and uses JSON Pointer notation. Learn more about JSON Pointers.
op: OpEnum
The JSON Patch operation
path: String
The JSON Pointer to the target key
value: Option<Value>
The value to be used. Only available for add
and replace
operations.
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