Skip to main content

list_system_parameters

Function list_system_parameters 

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

List all system parameters

§Arguments

  • config_json - Configuration JSON string

§Returns

Returns a HashMap of parameter names to values

§Example

use sz_configtool_lib::system_params;

let config = r#"{"G2_CONFIG": {"CFG_RTYPE": [{"RCLASS_ID": 2, "BREAK_RES": 1}]}}"#;
let params = system_params::list_system_parameters(config).unwrap();
assert!(params.contains_key("relationshipsBreakMatches"));