pub struct FetchOutcome {
pub ref_updates: Vec<FetchRefUpdate>,
pub pruned: Vec<PrunedRef>,
pub head_symref: Option<String>,
pub wrote_fetch_head: bool,
}Expand description
The structured result of a fetch.
Fields§
§ref_updates: Vec<FetchRefUpdate>The ref updates that were planned (and applied unless dry_run), in the
order they were resolved. Includes auto-followed tags; entries without a
dst are fetch-only (e.g. a bare HEAD fetch) and update no local ref.
pruned: Vec<PrunedRef>Remote-tracking refs pruned (empty unless prune and the remote is a
configured remote). Empty on dry_run.
head_symref: Option<String>The remote’s advertised HEAD symref target (e.g. refs/heads/main),
when the remote advertised one. Useful for resolving the default branch.
wrote_fetch_head: boolWhether FETCH_HEAD was written.
Trait Implementations§
Source§impl Clone for FetchOutcome
impl Clone for FetchOutcome
Source§fn clone(&self) -> FetchOutcome
fn clone(&self) -> FetchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetchOutcome
impl Debug for FetchOutcome
Source§impl Default for FetchOutcome
impl Default for FetchOutcome
Source§fn default() -> FetchOutcome
fn default() -> FetchOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FetchOutcome
impl RefUnwindSafe for FetchOutcome
impl Send for FetchOutcome
impl Sync for FetchOutcome
impl Unpin for FetchOutcome
impl UnsafeUnpin for FetchOutcome
impl UnwindSafe for FetchOutcome
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