Function collective::config::from_current_dir
source · pub fn from_current_dir<C: DeserializeOwned>(
format: ConfigFileFormat
) -> Result<C, ConfigError>
Expand description
Attempts to read a Config object from the current directory.
The configuration file is expected to be a file named config.ext
where
ext
is one of json
, toml
, or yaml
.