configbuilder-pattern-builder 0.1.0

configbuilder-pattern: builder domain (ConfigBuilder/BuilderFinalizer), trait contract + tech-agnostic reference implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Root configuration read from `config/application.toml` under the `[configbuilder]` key.
///
/// All fields are optional; absent keys fall back to environment-variable resolution
/// or XDG defaults. Consumers do not construct this directly -- the runtime loads it
/// via the `ConfigSection` impl.
#[derive(Debug, Default, serde::Deserialize)]
#[serde(default)]
pub struct ApplicationConfig {
    /// Override the default config directory path (normally resolved from XDG or
    /// `CONFIGBUILDER_CONFIG_DIR`). Leave `None` to use the default resolution chain.
    pub config_dir: Option<String>,
}