pub struct Context {
pub fetch_refspecs: Vec<RefSpec>,
pub extra_refspecs: Vec<RefSpec>,
}Available on crate feature
fetch and (crate features blocking-client or async-client) only.Expand description
For use in RefMap::fetch().
Fields§
§fetch_refspecs: Vec<RefSpec>All explicit refspecs to identify references on the remote that you are interested in.
Note that these are copied to RefMap::refspecs for convenience, as RefMap::mappings refer to them by index.
extra_refspecs: Vec<RefSpec>A list of refspecs to use as implicit refspecs which won’t be saved or otherwise be part of the remote in question.
This is useful for handling remote.<name>.tagOpt for example.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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