pub enum Layer {
Env(Option<String>),
Clap(ArgMatches),
}
Expand description
Layer to configure priority when instantiate configuration.
Variants
Env(Option<String>)
Env layer taking an optional prefix for environment variables
Clap(ArgMatches)
Clap layer taking arguments matches from a clap application
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl !UnwindSafe for Layer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more