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