pub fn load(input: String) -> Result<Config, ConfigError> {
    let config: Config = toml::from_str(&input).map_err(ConfigError::Parse)?;

    Ok(config)
}
/// Loads the configuration from the given string.
Loads the configuration from the given string.
Loads the configuration from the given string .
pub fn load(input: String) -> Result<Config, ConfigError> {
    let config: Config = toml::from_str(&input).map_err(ConfigError::Parse)?;
    Ok(config)
}
pub fn load ( input : String ) -> Result < Config , ConfigError > { let config : Config = toml :: from_str ( & input ) . map_err ( ConfigError :: Parse ) ? ; Ok ( config ) }
Loads the configuration from the given string.
Loads the configuration from the given string .
input
String
input
String