pub enum ConfigSource {
Local {
path: PathBuf,
},
Worktree {
path: PathBuf,
},
Global {
path: PathBuf,
},
System {
path: PathBuf,
},
Included {
path: PathBuf,
included_from: Option<PathBuf>,
},
Env,
CommandLine,
Blob {
spec: String,
},
Stdin,
}Expand description
The physical or synthetic origin of a config value.
Variants§
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 (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 ConfigSource
impl Debug for ConfigSource
impl Eq for ConfigSource
Source§impl PartialEq for ConfigSource
impl PartialEq for ConfigSource
Source§fn eq(&self, other: &ConfigSource) -> bool
fn eq(&self, other: &ConfigSource) -> bool
Tests for
self and other values to be equal, and is used by ==.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