Skip to main content

delete_from_ssn_last4_hash

Function delete_from_ssn_last4_hash 

Source
pub fn delete_from_ssn_last4_hash(
    config_json: &str,
    name: &str,
) -> Result<String>
Expand description

Delete a name from the SSN_LAST4_HASH array

§Arguments

  • config_json - Configuration JSON string
  • name - Name value to remove

§Returns

Returns modified configuration JSON on success

§Example

use sz_configtool_lib::hashes;

let config = r#"{"G2_CONFIG": {"SYS_OOM": {"SSN_LAST4_HASH": ["SMITH"]}}}"#;
let modified = hashes::delete_from_ssn_last4_hash(config, "SMITH").unwrap();