Skip to main content

configbuilder_pattern_builder/
application_config.rs

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