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 : 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: OpEnumThe operation to be performed. One of "add", "remove", "replace", "move", "copy", or "test".
path: StringThe 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