Struct git_repository::permissions::Environment
source · [−]pub struct Environment {
pub xdg_config_home: Resource,
pub home: Resource,
pub git_prefix: Resource,
}Expand description
Permissions related to the usage of environment variables
Fields
xdg_config_home: ResourceControl 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: ResourceControl the way resources pointed to by the home directory (similar to xdg_config_home) may be used.
git_prefix: ResourceControl if resources pointed to by GIT_* prefixed environment variables can be used.
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 more
Auto 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 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