[][src]Enum twelf::Layer

pub enum Layer<'a> {
    Env(Option<String>),
    Json(PathBuf),
    Yaml(PathBuf),
    Toml(PathBuf),
    Ini(PathBuf),
    Dhall(PathBuf),
    Clap(ArgMatches<'a>),
}

Layer to configure priority when instantiate configuration.

Variants

Env layer taking an optional prefix for environment variables

Json(PathBuf)

Json layer taking file path to the json file

Yaml(PathBuf)

Yaml layer taking file path to the yaml file

Toml(PathBuf)

Toml layer taking file path to the toml file

Ini(PathBuf)

Ini layer taking file path to the ini file

Dhall(PathBuf)

Dhall layer taking file path to the dhall file

Clap(ArgMatches<'a>)

Clap layer taking arguments matches from a clap application

Trait Implementations

impl<'a> Clone for Layer<'a>[src]

impl<'a> Debug for Layer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Layer<'a>

impl<'a> Send for Layer<'a>

impl<'a> Sync for Layer<'a>

impl<'a> Unpin for Layer<'a>

impl<'a> UnwindSafe for Layer<'a>

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.