pub struct FetchRequest<'a> {
pub git_dir: &'a Path,
pub format: ObjectFormat,
pub config: &'a GitConfig,
pub remote_name: &'a str,
pub source: &'a FetchSource,
pub refspecs: &'a [String],
pub options: &'a FetchOptions,
}Expand description
Fully resolved inputs for a fetch run.
Fields§
§git_dir: &'a PathLocal repository $GIT_DIR.
format: ObjectFormatLocal repository object format.
config: &'a GitConfigLocal repository config snapshot.
remote_name: &'a strRemote name or source string used for config lookup and FETCH_HEAD.
source: &'a FetchSourceAlready-resolved transport source.
refspecs: &'a [String]Refspecs requested by the caller. Empty means configured fetch refspecs,
falling back to HEAD.
options: &'a FetchOptionsFetch behavior flags.
Auto Trait Implementations§
impl<'a> Freeze for FetchRequest<'a>
impl<'a> RefUnwindSafe for FetchRequest<'a>
impl<'a> Send for FetchRequest<'a>
impl<'a> Sync for FetchRequest<'a>
impl<'a> Unpin for FetchRequest<'a>
impl<'a> UnsafeUnpin for FetchRequest<'a>
impl<'a> UnwindSafe for FetchRequest<'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