Function overwrite

Source
pub fn overwrite(req: &Request) -> Result<String, TransformError>
Examples found in repository?
examples/usage.rs (line 26)
17fn overwrite() {
18    let sample_json = r#"{"hello": "world"}"#;
19
20    let req = Request {
21        data: sample_json.into(),
22        path: "hello".to_string(),
23        value: r#""baz""#.to_string(),
24    };
25
26    let updated_json = snitch_transform::transform::overwrite(&req).unwrap();
27
28    println!(
29        "Input JSON: {} || Result JSON: {}",
30        sample_json, updated_json,
31    )
32}