pub trait Source: Debug {
// Required methods
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>;
fn collect(&self) -> Result<Map<String, Value>, ConfigError>;
// Provided method
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError> { ... }
}
Expand description
Describes a generic source of configuration properties.
Required Methods§
Provided Methods§
Sourcefn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Collects all configuration properties to a provided cache.