pub fn obfuscate(req: &Request) -> Result<String, TransformError>Examples found in repository?
examples/usage.rs (line 77)
68fn obfuscate_string() {
69 let sample_json = r#"{"hello": "world"}"#;
70
71 let req = Request {
72 path: "hello".to_string(),
73 data: sample_json.into(),
74 value: "".to_string(), // default
75 };
76
77 let updated_json = snitch_transform::transform::obfuscate(&req).unwrap();
78
79 println!(
80 "Input JSON: {} || Result JSON: {}",
81 sample_json, updated_json,
82 )
83}