Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Result<Config, ConfigError>
Expand description

Reads a configuration from its TOML text.

ยงErrors

A ConfigError naming the key at fault: text that is not TOML, an unknown key, a required key missing, or a value of the wrong type or not more than zero.