pub enum ConfigSource {
Merged {
from: Box<Self>,
into: Box<Self>,
},
DotEnv(PathBuf),
File(PathBuf),
Environment {
variable_names: Vec<String>,
},
}
Expand description
A source of configuration.
Variants§
Merged
From two configuration sources merged together.
DotEnv(PathBuf)
From a .toml.env
file (Path may be different if user has specified something different).
File(PathBuf)
From a configuration file.
Environment
From environment variables.
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
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