Expand description
Per-environment application configuration loaded from config/<env>.yml.
Config is a trait so applications can supply their own backing store;
YamlConfig is the default implementation that deserializes the YAML file
for the environment reported by Environment::get_env.
Structs§
- Cors
Config - Opt-in CORS settings (spec 07
[middleware.cors]). Disabled unlessenabled: true. Each dimension must be configured explicitly: empty lists deny that dimension. Use"*"in a list to allow any value for that dimension. Withallow_credentials: true, origin/method/header wildcards use mirror-request semantics instead of*(required by the CORS spec andtower-http). - Logger
Config - Re-exported so
config::LoggerConfigresolves; the logger config lives indoido-corealongside the logger it drives. Logging settings, deserialized from theloggersection ofconfig/<env>.yml. - Middleware
Config - Opt-in middleware settings (spec 07
[middleware]). - Server
Config - Server bind settings. The listen address is the
bindIP joined withport(e.g.0.0.0.0:3000). - Yaml
Config - File-based
Configdeserialized fromconfig/<env>.yml.
Traits§
- Config
- Application configuration. Used as a trait object (
Box<dyn Config>) so the backing store can be swapped without touching call sites.