Trait config::ConfigurationBuilder
source · [−]pub trait ConfigurationBuilder {
fn properties(&self) -> &HashMap<String, Box<dyn Any>>;
fn sources(&self) -> &[Box<dyn ConfigurationSource>];
fn add(&mut self, source: Box<dyn ConfigurationSource>);
fn build(&self) -> Box<dyn ConfigurationRoot>;
}Expand description
Defines the behavior used to build an application configuration.
Required Methods
sourcefn sources(&self) -> &[Box<dyn ConfigurationSource>]
fn sources(&self) -> &[Box<dyn ConfigurationSource>]
Gets sources used to obtain configuration values.
sourcefn add(&mut self, source: Box<dyn ConfigurationSource>)
fn add(&mut self, source: Box<dyn ConfigurationSource>)
sourcefn build(&self) -> Box<dyn ConfigurationRoot>
fn build(&self) -> Box<dyn ConfigurationRoot>
Builds configuration with the keys and values from the set of registered sources.