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
path: Input consumed bycrate::runtime::json_commands::conf_lookup_value.key: Input consumed bycrate::runtime::json_commands::conf_lookup_value.
§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");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.