pub struct Options {
pub prefix_from_spec_as_filter_on_remote: bool,
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::new().
Fields§
§prefix_from_spec_as_filter_on_remote: boolUse a two-component prefix derived from the ref-spec’s source, like refs/heads/ to let the server pre-filter refs
with great potential for savings in traffic and local CPU time. Defaults to true.
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 Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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