pub enum ConfigSource {
Default,
File(String),
Environment,
Api,
Manual,
}Expand description
Where a configuration value originated.
Variants§
Default
Built-in defaults — no explicit configuration was provided.
File(String)
Loaded from a file at the given path.
Environment
Derived from environment variables.
Api
Pushed via an API call (e.g. HTTP control plane).
Manual
Set directly in code or via a test.
Trait Implementations§
Source§impl Clone for ConfigSource
impl Clone for ConfigSource
Source§fn clone(&self) -> ConfigSource
fn clone(&self) -> ConfigSource
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 moreSource§impl Debug for ConfigSource
impl Debug for ConfigSource
Source§impl<'de> Deserialize<'de> for ConfigSource
impl<'de> Deserialize<'de> for ConfigSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConfigSource
impl Display for ConfigSource
Source§impl PartialEq for ConfigSource
impl PartialEq for ConfigSource
Source§impl Serialize for ConfigSource
impl Serialize for ConfigSource
impl Eq for ConfigSource
impl StructuralPartialEq for ConfigSource
Auto Trait Implementations§
impl Freeze for ConfigSource
impl RefUnwindSafe for ConfigSource
impl Send for ConfigSource
impl Sync for ConfigSource
impl Unpin for ConfigSource
impl UnsafeUnpin for ConfigSource
impl UnwindSafe for ConfigSource
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