pub fn delete(req: &Request) -> Result<String, TransformError>
Examples found in repository?
examples/usage.rs (line 133)
122fn delete_field() {
123 let sample_json = r#"{"hello": "world"}"#;
124
125 let req = transform::Request {
126 path: "hello".to_string(),
127 data: sample_json.into(),
128 value: "".to_string(), // default
129 truncate_options: None,
130 extract_options: None,
131 };
132
133 let updated_json = transform::delete(&req).unwrap();
134
135 println!(
136 "Input JSON: {} || Result JSON: {}",
137 sample_json, updated_json,
138 )
139}