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.
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
impl<T> Pointable for T
impl<T> Pointable for T
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