Skip to main content

Module config

Module config 

Source

Structs§

AnnotatedValue
Configuration variable with its source information.
ConfigEnv
NonEmptyCommandArgsVec
Wrapper to reject an array without command name.
RawConfig
Newtype for unprocessed (or unresolved) StackedConfig.

Enums§

CommandNameAndArgs
Command name and arguments specified by config.
ConfigArgKind
Configuration source/data type provided as command-line argument.

Constants§

CONFIG_SCHEMA

Functions§

config_from_environment
Initializes stacked config with the given default_layers and infallible sources.
default_config_layers
default_config_migrations
List of rules to migrate deprecated config variables.
find_all_variables
Return all variable names found in the args, without the dollar sign
interpolate_variables
parse_config_args
Parses --config* arguments.
parse_value_or_bare_string
Parses a TOML value expression. Interprets the given value as string if it can’t be parsed and doesn’t look like a TOML expression.
resolved_config_values
Collects values under the given filter_prefix name recursively, from all layers.
to_serializable_value
Converts ConfigValue (or toml_edit::Value) to toml::Value which implements serde::Serialize.