Expand description
Configuration store helpers.
Structs§
- Config
File - Wrapper for file-based
ConfigLayer
, providing convenient methods for modification. - Config
File Save Error - Error that can occur when saving config variables to file.
- Config
Layer - Set of configuration variables with source information.
- Config
Migrate Error - Error that can occur when migrating config variables.
- Config
Migration Rule - Rule to migrate deprecated config variables.
- Config
Name Path Buf - Dotted config name path.
- Config
Resolution Context - Parameters to enable scoped config tables conditionally.
- Stacked
Config - Stack of configuration layers which can be merged as needed.
Enums§
- Config
GetError - Error that can occur when looking up config variable.
- Config
Load Error - Error that can occur when parsing or loading config variables.
- Config
Migrate Layer Error - Inner error of
ConfigMigrateError
. - Config
Source - Source of configuration variables in order of precedence.
- Config
Update Error - Error that can occur when updating config variable.
Traits§
- Config
GetResult Ext - Extension methods for
Result<T, ConfigGetError>
. - ToConfig
Name Path - Value that can be converted to a dotted config name path.
Functions§
- migrate
- Applies migration
rules
toconfig
. Returns descriptions of the applied migrations. - resolve
- Evaluates condition for each layer and scope, flattens scoped tables. Returns new config that only contains enabled layers and tables.
Type Aliases§
- Config
Item - Config value or table node.
- Config
Table - Non-inline table of config key and value pairs.
- Config
Table Like - Non-inline or inline table of config key and value pairs.
- Config
Value - Generic config value.