pub struct WorktreeOptions {
pub cwd: Option<PathBuf>,
pub root: Option<PathBuf>,
pub environment: EnvironmentInput,
}Expand description
Options for discovering a Git worktree.
Fields§
§cwd: Option<PathBuf>Directory from which discovery starts. Defaults to the process cwd.
root: Option<PathBuf>Overrides the root checkout used as the file-operation source.
environment: EnvironmentInputExplicit environment input used for compatibility discovery.
Trait Implementations§
Source§impl Clone for WorktreeOptions
impl Clone for WorktreeOptions
Source§fn clone(&self) -> WorktreeOptions
fn clone(&self) -> WorktreeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorktreeOptions
impl Debug for WorktreeOptions
Source§impl Default for WorktreeOptions
impl Default for WorktreeOptions
Source§fn default() -> WorktreeOptions
fn default() -> WorktreeOptions
Returns the “default value” for a type. Read more
impl Eq for WorktreeOptions
Source§impl PartialEq for WorktreeOptions
impl PartialEq for WorktreeOptions
Source§fn eq(&self, other: &WorktreeOptions) -> bool
fn eq(&self, other: &WorktreeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorktreeOptions
Auto Trait Implementations§
impl Freeze for WorktreeOptions
impl RefUnwindSafe for WorktreeOptions
impl Send for WorktreeOptions
impl Sync for WorktreeOptions
impl Unpin for WorktreeOptions
impl UnsafeUnpin for WorktreeOptions
impl UnwindSafe for WorktreeOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more