pub enum ConfigSourceKind {
Default,
File,
Environment,
Runtime,
Override,
SecretReference,
Custom(String),
}Expand description
A primitive kind for describing a configuration source.
Variants§
Default
Built-in or caller-provided default values.
File
Values identified as coming from a file.
Environment
Values identified as coming from an environment source.
Runtime
Values identified as coming from runtime input.
Override
Values identified as explicit overrides.
SecretReference
Values identified as secret references.
Custom(String)
Caller-defined source kind.
Trait Implementations§
Source§impl Clone for ConfigSourceKind
impl Clone for ConfigSourceKind
Source§fn clone(&self) -> ConfigSourceKind
fn clone(&self) -> ConfigSourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigSourceKind
impl Debug for ConfigSourceKind
Source§impl Display for ConfigSourceKind
impl Display for ConfigSourceKind
Source§impl Hash for ConfigSourceKind
impl Hash for ConfigSourceKind
Source§impl Ord for ConfigSourceKind
impl Ord for ConfigSourceKind
Source§fn cmp(&self, other: &ConfigSourceKind) -> Ordering
fn cmp(&self, other: &ConfigSourceKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConfigSourceKind
impl PartialEq for ConfigSourceKind
Source§fn eq(&self, other: &ConfigSourceKind) -> bool
fn eq(&self, other: &ConfigSourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConfigSourceKind
impl PartialOrd for ConfigSourceKind
impl Eq for ConfigSourceKind
impl StructuralPartialEq for ConfigSourceKind
Auto Trait Implementations§
impl Freeze for ConfigSourceKind
impl RefUnwindSafe for ConfigSourceKind
impl Send for ConfigSourceKind
impl Sync for ConfigSourceKind
impl Unpin for ConfigSourceKind
impl UnsafeUnpin for ConfigSourceKind
impl UnwindSafe for ConfigSourceKind
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