Skip to main content

parse_config_auto

Function parse_config_auto 

Source
pub fn parse_config_auto(input: &str) -> Result<AgentConfig, ConfigError>
Expand description

Parse a config string, auto-detecting the format.

Tries TOML first, then JSON, then YAML. Returns the first successful parse.