pub fn init_from_yaml<P: AsRef<Path>>(path: P) -> Result<(), Error>Expand description
Initialize the global configuration from a YAML file.
Loads values from the specified YAML file and installs them as
the Source::File layer. This is the lowest-priority
explicit source: values from Env, Runtime, or TestOverride
layers always take precedence. Keys not present in the file
fall back to their defaults or higher-priority sources.
Typically invoked once at process startup to provide a baseline configuration. Repeated calls replace the existing File layer.