Skip to main content

parse_str

Function parse_str 

Source
pub fn parse_str(text: &str, origin: &str) -> Result<LoopConfig, CoreError>
Expand description

Parse config text, trying YAML first (a superset of JSON in practice) and falling back to strict JSON so both error messages survive to the caller.