pub struct CloneRequest<'a> {
pub destination: &'a Path,
pub git_dir_override: Option<&'a Path>,
pub core_worktree: Option<&'a str>,
pub format: ObjectFormat,
pub source: &'a CloneSource,
pub options: &'a CloneOptions<'a>,
}Expand description
Fully resolved inputs for a clone run.
Fields§
§destination: &'a PathDestination worktree/repository path.
git_dir_override: Option<&'a Path>Explicit destination git directory, used by GIT_WORK_TREE git clone
where the command-line directory is the repository admin dir and the
worktree lives elsewhere.
core_worktree: Option<&'a str>Value to write as core.worktree when git_dir_override separates the
admin dir from the checkout root.
format: ObjectFormatDestination repository object format.
source: &'a CloneSourceAlready-resolved clone source.
options: &'a CloneOptions<'a>Clone behavior and branch-tracking options.
Auto Trait Implementations§
impl<'a> Freeze for CloneRequest<'a>
impl<'a> RefUnwindSafe for CloneRequest<'a>
impl<'a> Send for CloneRequest<'a>
impl<'a> Sync for CloneRequest<'a>
impl<'a> Unpin for CloneRequest<'a>
impl<'a> UnsafeUnpin for CloneRequest<'a>
impl<'a> UnwindSafe for CloneRequest<'a>
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