pub trait Source: Debug {
    fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>;
    fn collect(&self) -> Result<Map<String, Value>, ConfigError>;

    fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError> { ... }
}
Expand description

Describes a generic source of configuration properties.

Required Methods

Collect all configuration properties available from this source and return a Map.

Provided Methods

Collects all configuration properties to a provided cache.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implementations on Foreign Types

Implementors