Skip to main content

conf_lookup_value

Function conf_lookup_value 

Source
pub fn conf_lookup_value(path: &Path, key: &str) -> Option<String>
Expand description

Looks up a safe key in a line-oriented runtime configuration file.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::conf_lookup_value can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::conf_lookup_value.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::conf_lookup_value(std::path::Path::new("fixture.json"), "key");