Skip to main content

parse_config_val

Function parse_config_val 

Source
fn parse_config_val(ty: &str, value: &str) -> Result<ConfigVal>
Expand description

Parse a configuration value string into a ConfigVal, selecting the variant by a type tag. Each numeric/bool/duration type reuses mz_dyncfg’s own ConfigType::parse (so the accepted syntax — e.g. on/off for bool, humantime for duration — matches the rest of the codebase); string is taken verbatim.