Struct dinglebit_config::multi::MultiConfig[][src]

pub struct MultiConfig { /* fields omitted */ }

Implementations

impl MultiConfig[src]

Create a configuration that uses the given list of configs to try and get values. If a value isn’t found, the next config on the list is consulted. This allows your to create a set of configs that can override values as needed. For example, creating a MultiConfig with !vec[environment, instance-config-file, global-config-file, default-values] would provide something like you’d expect in a 12-factor app.

pub fn new(configs: Vec<Box<dyn Config>>) -> Self[src]

Trait Implementations

impl Config for MultiConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.