#[non_exhaustive]pub struct FetchAllOptions {
pub fetch: FetchOptions,
pub prune: Option<bool>,
pub tags: Option<bool>,
}Expand description
Options for RepositoryRemotes::fetch_all:
the shared settings for every remote, and command-line overrides of each remote’s
prune and tag config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fetch: FetchOptionsSettings every remote’s fetch starts from: dry run, depth, shallow options, index-pack threads, environment, pack spooling, HTTP protocol version and remote progress. Each remote’s refspecs, tag mode and prune come from its own config.
prune: Option<bool>--prune / --no-prune; None uses each remote’s remote.<name>.prune and
fetch.prune.
--tags / --no-tags; None uses each remote’s remote.<name>.tagOpt.
Implementations§
Source§impl FetchAllOptions
impl FetchAllOptions
Sourcepub fn new(fetch: FetchOptions) -> Self
pub fn new(fetch: FetchOptions) -> Self
Fetch every remote starting from fetch, with each remote’s own prune and tag config.
Sourcepub fn with_prune(self, prune: Option<bool>) -> Self
pub fn with_prune(self, prune: Option<bool>) -> Self
Override every remote’s prune config (--prune / --no-prune).
Override every remote’s tag config (--tags / --no-tags).
Trait Implementations§
Source§impl Clone for FetchAllOptions
impl Clone for FetchAllOptions
Auto Trait Implementations§
impl !RefUnwindSafe for FetchAllOptions
impl !UnwindSafe for FetchAllOptions
impl Forget for FetchAllOptions
impl Freeze for FetchAllOptions
impl Send for FetchAllOptions
impl Sync for FetchAllOptions
impl Unpin for FetchAllOptions
impl UnsafeUnpin for FetchAllOptions
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