pub struct Env { /* private fields */ }
Expand description

Implements the environment source.

Implementations

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

Get a configuration option. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.