pub enum ConfigSource {
Defaults,
FilePath(String),
EnvPrefix(String),
}Expand description
Where configuration should be loaded from.
Variants§
Defaults
Use sane defaults only.
FilePath(String)
Load from a single file path.
EnvPrefix(String)
Load from environment variables (prefix-based).
Implementations§
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 Default for ConfigSource
impl Default for ConfigSource
Source§fn default() -> ConfigSource
fn default() -> ConfigSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigSource
impl RefUnwindSafe for ConfigSource
impl Send for ConfigSource
impl Sync for ConfigSource
impl Unpin 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