Function collective::config::figment_from_file
source ยท pub fn figment_from_file<P: AsRef<Path>>(
path: P,
format: Option<ConfigFileFormat>,
) -> Result<Figment, ConfigError>
Expand description
Attempts to read a Config object from the specified path.
The expected file format can be optionally specified. If a format is not specified, the library will attempt to infer it from the file extension.