pub fn obfuscate(req: &Request) -> Result<String, TransformError>
Examples found in repository?
examples/usage.rs (line 88)
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
fn obfuscate_string() {
    let sample_json = r#"{"hello": "world"}"#;

    let req = transform::Request {
        path: "hello".to_string(),
        data: sample_json.into(),
        value: "".to_string(), // default
        truncate_options: None,
    };

    let updated_json = transform::obfuscate(&req).unwrap();

    println!(
        "Input JSON: {} || Result JSON: {}",
        sample_json, updated_json,
    )
}