Struct git_repository::permissions::Environment
source · [−]pub struct Environment {
pub xdg_config_home: Permission,
pub home: Permission,
pub git_prefix: Permission,
pub ssh_prefix: Permission,
}
Expand description
Permissions related to the usage of environment variables
Fields
xdg_config_home: Permission
Control whether resources pointed to by XDG_CONFIG_HOME
can be used when looking up common configuration values.
Note that git_sec::Permission::Forbid
will cause the operation to abort if a resource is set via the XDG config environment.
home: Permission
Control the way resources pointed to by the home directory (similar to xdg_config_home
) may be used.
git_prefix: Permission
Control if resources pointed to by GIT_*
prefixed environment variables can be used.
ssh_prefix: Permission
Control if resources pointed to by SSH_*
prefixed environment variables can be used (like SSH_ASKPASS
)
Implementations
sourceimpl Environment
impl Environment
Trait Implementations
sourceimpl Clone for Environment
impl Clone for Environment
sourcefn clone(&self) -> Environment
fn clone(&self) -> Environment
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 moreAuto Trait Implementations
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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