Struct config::Config
[−]
[src]
pub struct Config<'a> { /* fields omitted */ }
Methods
impl<'a> Config<'a>
[src]
fn new() -> Config<'a>
fn merge<T>(&mut self, source: T) -> Result<(), Box<Error>> where T: SourceBuilder
Merge in configuration values from the given source.
fn set_default<T>(&mut self, key: &str, value: T) -> Result<(), Box<Error>> where T: Into<Value<'a>>
Sets the default value for this key. The default value is only used when no other value is provided.
fn set<T>(&mut self, key: &str, value: T) -> Result<(), Box<Error>> where T: Into<Value<'a>>
Sets an override for this key.