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

Resolves one user-configured value from JSON configuration text.

§Parameters

§Returns

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

§Examples

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