Crate pepe_config

Source

Modules§

builder
kafka
postgres
redis
zeroize
Securely zero memory with a simple trait (Zeroize) built on stable Rust primitives which guarantee the operation will not be “optimized away”.

Structs§

Config
A prioritized configuration repository.
ConfigBuilder
A configuration builder
DurationString
Environment
An environment source collects a dictionary of environment variables values into a hierarchical config Value type. We have to be aware how the config tree is created from the environment dictionary, therefore we are mindful about prefixes for the environment keys, level separators, encoding form (kebab, snake case) etc.
File
A configuration source backed up by a file.
FileSourceFile
Describes a file sourced from a file
FileSourceString
Describes a file sourced from a string
SecretBox
Wrapper type for values that contains secrets, which attempts to limit accidental exposure and ensure secrets are wiped from memory when dropped. (e.g. passwords, cryptographic keys, access tokens or other credentials)
Value
A configuration value.

Enums§

Case
Defines the type of casing a string can be.
ConfigError
Represents all possible errors that can occur when working with configuration.
FileFormat
File formats provided by the library.
ValueKind
Underlying kind of the configuration value.

Traits§

AsyncSource
Describes a generic source of configuration properties capable of using an async runtime.
CloneableSecret
Marker trait for secrets which are allowed to be cloned
ExposeSecret
Expose a reference to an inner secret
ExposeSecretMut
Expose a mutable reference to an inner secret
FileSource
Describes where the File is sourced
FileStoredFormat
An extension of Format trait.
Format
Describes a format of configuration source data
SerializableSecret
Marker trait for secret types which can be Serialize-d by serde.
Source
Describes a generic source of configuration properties.

Functions§

load
load_yaml

Type Aliases§

Map
The backing store for Config
SecretSlice
Secret slice type.
SecretString
Secret string type.