Modules§
- ASCII color helpers for use within error messages.
- Built-in
parse_env
functions. - Built-in
merge
functions. - Generate schemas to render into outputs.
- Built-in
validate
functions.
Macros§
Structs§
- The result of loading a configuration. Includes the final configuration, and all layers that were loaded.
- A system for loading configuration from multiple sources in multiple formats, and generating a final result after merging and validating layers.
- Error for handler functions.
- A layer of configuration that was loaded and used to create the final state.
- Error for merge failures.
- Error for a single parse failure.
- Error related to serde parsing.
- Represents the path from the configuration root to a nested field or field value.
- Describes the metadata and shape of a type.
- A
Schema
builder. - Error for a single validation failure.
- Error that contains multiple validation errors, for each setting that failed.
Enums§
- All configuration based errors.
- Represents an extendable setting, either a string or a list of strings.
- Supported source configuration formats.
- Represents all the different forms a path is composed of.
- All possible types within a schema.
- Source from which to load a configuration.
Traits§
- A system for reading and writing to a cache for URL based configurations.
- Represents the final configuration, with all settings populated with a value.
- Represents an enumerable setting for use within a
Config
. - Defines a schema that represents the shape of the implementing type.
Functions§
- Returns true if the value looks like a file, by checking for
file://
, path separators, or supported file extensions. - Returns true if the value is a secure URL, by checking for
https://
. This check can be bypassed for localhost URLs. - Returns true if the value ends in a supported file extension.
- Returns true if the value looks like a URL, by checking for
http://
,https://
, orwww
.
Type Aliases§
- A merger function that receives the previous and next values, the current context, and can return a
MergeError
on failure. - A validator function that receives a setting value to validate, the parent configuration the setting belongs to, the current context, and can return a
ValidateError
on failure.