Skip to main content

azure_devops/work_items/models/structs/json_patch_operation/
replace.rs

1use super::struct_::JsonPatchOperation;
2
3impl JsonPatchOperation {
4    pub fn replace(path: impl Into<String>, value: impl Into<serde_json::Value>) -> Self {
5        Self {
6            op: "replace".into(),
7            path: path.into(),
8            value: Some(value.into()),
9            from: None,
10        }
11    }
12}