Struct git_repository::permissions::Config
source · [−]pub struct Config {
pub system: bool,
pub git: bool,
pub user: bool,
pub env: bool,
pub includes: bool,
}
Expand description
Configure security relevant options when loading a git configuration.
Fields
system: bool
Whether to use the system configuration.
This is defined as $(prefix)/etc/gitconfig
on unix.
git: bool
Whether to use the git application configuration.
A platform defined location for where a user’s git application configuration should be located.
If $XDG_CONFIG_HOME
is not set or empty, $HOME/.config/git/config
will be used
on unix.
user: bool
Whether to use the user configuration.
This is usually ~/.gitconfig
on unix.
env: bool
Whether to use worktree configuration from config.worktree
.
Whether to use the configuration from environment variables.
includes: bool
Whether to follow include files are encountered in loaded configuration,
via include
and includeIf
sections.
Note that this needs access to GIT_*
prefixed environment variables.
Implementations
Trait Implementations
sourceimpl Ord for Config
impl Ord for Config
sourceimpl PartialOrd<Config> for Config
impl PartialOrd<Config> for Config
sourcefn partial_cmp(&self, other: &Config) -> Option<Ordering>
fn partial_cmp(&self, other: &Config) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Config
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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