Struct git_config::Permissions
source · [−]pub struct Permissions {
pub system: Permission,
pub global: Permission,
pub user: Permission,
pub repository: Permission,
pub worktree: Permission,
pub env: Permission,
pub includes: Permission,
}
Expand description
Configure security relevant options when loading a git configuration.
Fields
system: Permission
How to use the system configuration.
This is defined as $(prefix)/etc/gitconfig
on unix.
global: Permission
How to use the global configuration.
This is usually ~/.gitconfig
.
user: Permission
How to use the user configuration.
Second user-specific configuration path; if $XDG_CONFIG_HOME
is not
set or empty, $HOME/.config/git/config
will be used.
repository: Permission
How to use the repository configuration.
worktree: Permission
How to use worktree configuration from config.worktree
.
env: Permission
How to use the configuration from environment variables.
includes: Permission
What to do when include files are encountered in loaded configuration.
Implementations
sourceimpl Permissions
impl Permissions
Trait Implementations
sourceimpl Clone for Permissions
impl Clone for Permissions
sourcefn clone(&self) -> Permissions
fn clone(&self) -> Permissions
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 Permissions
impl Debug for Permissions
sourceimpl Hash for Permissions
impl Hash for Permissions
sourceimpl Ord for Permissions
impl Ord for Permissions
sourceimpl PartialEq<Permissions> for Permissions
impl PartialEq<Permissions> for Permissions
sourcefn eq(&self, other: &Permissions) -> bool
fn eq(&self, other: &Permissions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Permissions) -> bool
fn ne(&self, other: &Permissions) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Permissions> for Permissions
impl PartialOrd<Permissions> for Permissions
sourcefn partial_cmp(&self, other: &Permissions) -> Option<Ordering>
fn partial_cmp(&self, other: &Permissions) -> 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 Permissions
impl Eq for Permissions
impl StructuralEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnwindSafe for Permissions
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