tier 0.1.17

Rust configuration library for layered TOML, env, and CLI settings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::BTreeMap;

use crate::loader::{CustomEnvDecoder, Layer};
use crate::{ConfigMetadata, EnvDecoder};

pub(super) struct EnvLayerContext<'a> {
    pub(super) metadata: &'a ConfigMetadata,
    pub(super) alias_overrides: &'a BTreeMap<String, String>,
    pub(super) env_decoders: &'a BTreeMap<String, EnvDecoder>,
    pub(super) custom_env_decoders: &'a BTreeMap<String, CustomEnvDecoder>,
    pub(super) runtime_layers: &'a [Layer],
}