[−][src]Trait config::Source
Describes a generic source of configuration properties.
Required methods
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
Collect all configuration properties available from this source and return a HashMap.
Provided methods
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Implementations on Foreign Types
impl Source for Vec<Box<dyn Source + Send + Sync>>[src]
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>[src]
impl<T> Source for Vec<T> where
T: Source + Sync + Send,
T: Clone,
T: 'static, [src]
T: Source + Sync + Send,
T: Clone,
T: 'static,
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>[src]
Implementors
impl Source for Config[src]
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>[src]
impl Source for Environment[src]
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>[src]
impl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send, [src]
T: 'static,
T: Sync + Send,