Struct azure_devops_rust_api::graph::models::JsonPatchOperation
source · pub struct JsonPatchOperation {
pub from: Option<String>,
pub op: Option<Op>,
pub path: Option<String>,
pub value: Option<Value>,
}Expand description
The JSON model for a JSON Patch operation
Fields§
§from: Option<String>The path to copy from for the Move/Copy operation.
op: Option<Op>The patch operation
path: Option<String>The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The “-” character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-).
value: Option<Value>The value for the operation. This is either a primitive or a JToken.
Implementations§
Trait Implementations§
source§impl Clone for JsonPatchOperation
impl Clone for JsonPatchOperation
source§fn clone(&self) -> JsonPatchOperation
fn clone(&self) -> JsonPatchOperation
Returns a copy of the value. Read more
1.0.0 · 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 JsonPatchOperation
impl Debug for JsonPatchOperation
source§impl Default for JsonPatchOperation
impl Default for JsonPatchOperation
source§fn default() -> JsonPatchOperation
fn default() -> JsonPatchOperation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for JsonPatchOperation
impl<'de> Deserialize<'de> for JsonPatchOperation
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<JsonPatchOperation> for JsonPatchOperation
impl PartialEq<JsonPatchOperation> for JsonPatchOperation
source§fn eq(&self, other: &JsonPatchOperation) -> bool
fn eq(&self, other: &JsonPatchOperation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.