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