/// Loads the configuration
///
/// Configuration can be specified through either a file or command
/// line. Command line arguments will have precedence over settings
/// from the configuration file.
Loads the configuration
Configuration can be specified through either a file or command
line. Command line arguments will have precedence over settings
from the configuration file.
Loads the configuration Configuration can be specified through either a file or command line . Command line arguments will have precedence over settings from the configuration file .
pub fn load_config() -> Result<NetBricksConfiguration, ConfigError> {
    let mut config = Config::new();
    config.merge(File::from_str(DEFAULT_TOML, FileFormat::Toml))?;
    config.try_into()
}
pub fn load_config ( ) -> Result < NetBricksConfiguration , ConfigError > { let mut config = Config :: new ( ) ; config . merge ( File :: from_str ( DEFAULT_TOML , FileFormat :: Toml ) ) ? ; config . try_into ( ) }
Loads the configuration
Configuration can be specified through either a file or command
line.
Loads the configuration Configuration can be specified through either a file or command line .