Struct git_config::file::from_paths::Options
source · [−]pub struct Options<'a> {
pub git_install_dir: Option<Cow<'a, Path>>,
pub max_depth: u8,
pub error_on_max_depth_exceeded: bool,
}
Expand description
Options when loading git config using GitConfig::from_paths()
.
Fields
git_install_dir: Option<Cow<'a, Path>>
The location where gitoxide or git is installed
max_depth: u8
The maximum allowed length of the file include chain built by following nested includes where base level is depth = 0.
error_on_max_depth_exceeded: bool
When max depth is exceeded while following nested included, return an error if true or silently stop following includes.
Setting this value to false allows to read configuration with cycles, which otherwise always results in an error.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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
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