[−][src]Struct justconfig::sources::env::Env
Implements the environment source.
Implementations
impl Env
[src]
pub fn new(env_mapping: &[(ConfPath, &OsStr)]) -> Box<Self>
[src]
Creates a new environment source.
For creating the environment source a mapping between the configuration key and the name of the environment variable has to be created. This is done by passing a slice of tuples. The first element of the tuple defines the configuration path of the environment value and the second element defines the name of the environment variable.
See the env
module for more information.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Env
[src]
impl !Send for Env
[src]
impl !Sync for Env
[src]
impl Unpin for Env
[src]
impl !UnwindSafe for Env
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,