Struct azure_devops_rust_api::build::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 for JsonPatchOperation
impl PartialEq 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 ==
.source§impl Serialize for JsonPatchOperation
impl Serialize for JsonPatchOperation
impl StructuralPartialEq for JsonPatchOperation
Auto Trait Implementations§
impl Freeze for JsonPatchOperation
impl RefUnwindSafe for JsonPatchOperation
impl Send for JsonPatchOperation
impl Sync for JsonPatchOperation
impl Unpin for JsonPatchOperation
impl UnwindSafe for JsonPatchOperation
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