pub struct Fetch<'a> {
pub git_repo: &'a Workspace,
pub target_url: &'a Url,
pub use_git_binary: Option<bool>,
pub git_config_path: &'a Path,
pub refs: Option<&'a [Ref]>,
}
Expand description
Mirrors a git repo by pulling down the upstream. Depending on the configuration it will use libgit2 or the git binary
Fields§
§git_repo: &'a Workspace
The repository on disk to fetch into
target_url: &'a Url
URL of the server being fetched from, must be a git compliant URL
use_git_binary: Option<bool>
Whether to use git binary or libgit2 as the engine for fetch operations
git_config_path: &'a Path
The path to Lorry’s git configuration
refs: Option<&'a [Ref]>
Refs to pull from
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Fetch<'a>
impl<'a> RefUnwindSafe for Fetch<'a>
impl<'a> Send for Fetch<'a>
impl<'a> Sync for Fetch<'a>
impl<'a> Unpin for Fetch<'a>
impl<'a> UnwindSafe for Fetch<'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