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; an emptyallowed_origins/allowed_methodsleaves that dimension unset on the layer. Use"*"inallowed_originsfor any origin. - 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.