pub struct DefaultConfigurationBuilder {
    pub sources: Vec<Box<dyn ConfigurationSource>>,
    pub properties: HashMap<String, Box<dyn Any>>,
}
Expand description

Represents a configuration builder.

Fields

sources: Vec<Box<dyn ConfigurationSource>>

Gets the associated configuration sources.

properties: HashMap<String, Box<dyn Any>>

Gets the properties that can be passed to configuration sources.

Implementations

Initializes a new, default configuration builder.

Trait Implementations

Gets a read-only key/value collection that can be used to share data between the builder and the registered sources. Read more
Gets sources used to obtain configuration values.
Adds a new configuration source. Read more
Builds configuration with the keys and values from the set of registered sources. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.