Enum ConfigSource
pub enum ConfigSource {
Env,
File,
}Expand description
The provenance of a resolved configuration value.
Variants§
Env
Value came from an environment variable override.
File
Value came from the persisted config file.
Trait Implementations§
§impl Clone for ConfigValueSource
impl Clone for ConfigValueSource
§fn clone(&self) -> ConfigValueSource
fn clone(&self) -> ConfigValueSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ConfigValueSource
impl Debug for ConfigValueSource
§impl PartialEq for ConfigValueSource
impl PartialEq for ConfigValueSource
impl Copy for ConfigValueSource
impl Eq for ConfigValueSource
impl StructuralPartialEq for ConfigValueSource
Auto Trait Implementations§
impl Freeze for ConfigValueSource
impl RefUnwindSafe for ConfigValueSource
impl Send for ConfigValueSource
impl Sync for ConfigValueSource
impl Unpin for ConfigValueSource
impl UnwindSafe for ConfigValueSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.