Enum git_config::fs::ConfigSource
source · [−]pub enum ConfigSource {
System,
Global,
User,
Repository,
Env,
Cli,
}
Variants
System
System-wide configuration path. This is defined as
$(prefix)/etc/gitconfig
.
Global
Also known as the user configuration path. This is usually ~/.gitconfig
.
User
Second user-specific configuration path; if $XDG_CONFIG_HOME
is not
set or empty, $HOME/.config/git/config
will be used. Any single-valued
variable set in this file will be overridden by whatever is in the
Global configuration file.
Repository
Env
Config values parsed from the environment.
Cli
Trait Implementations
sourceimpl Clone for ConfigSource
impl Clone for ConfigSource
sourcefn clone(&self) -> ConfigSource
fn clone(&self) -> ConfigSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConfigSource
impl Debug for ConfigSource
sourceimpl Hash for ConfigSource
impl Hash for ConfigSource
sourceimpl PartialEq<ConfigSource> for ConfigSource
impl PartialEq<ConfigSource> for ConfigSource
impl Copy for ConfigSource
impl Eq for ConfigSource
impl StructuralEq for ConfigSource
impl StructuralPartialEq for ConfigSource
Auto Trait Implementations
impl RefUnwindSafe for ConfigSource
impl Send for ConfigSource
impl Sync for ConfigSource
impl Unpin for ConfigSource
impl UnwindSafe for ConfigSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more