pub struct ResolvedFetchRef {
pub remote_ref: String,
pub oid: Option<ObjectId>,
pub local_ref: Option<String>,
pub force: bool,
pub fetch_head: FetchHeadPolicy,
pub source_kind: FetchRefspecSourceKind,
}Expand description
One ref to fetch after resolving explicit refspecs.
Fields§
§remote_ref: StringRemote-side ref name (e.g. refs/heads/main, HEAD, or a hex object id).
oid: Option<ObjectId>Object id when the source is HEAD or a raw object id (not looked up in advertisements).
local_ref: Option<String>Local ref to update, or None when the refspec destination is empty.
force: boolWhether the refspec carried a + force flag.
fetch_head: FetchHeadPolicyWhether this ref appears in FETCH_HEAD.
source_kind: FetchRefspecSourceKindHow the source side was resolved against advertised refs.
Trait Implementations§
Source§impl Clone for ResolvedFetchRef
impl Clone for ResolvedFetchRef
Source§impl Debug for ResolvedFetchRef
impl Debug for ResolvedFetchRef
impl Eq for ResolvedFetchRef
Source§impl PartialEq for ResolvedFetchRef
impl PartialEq for ResolvedFetchRef
impl StructuralPartialEq for ResolvedFetchRef
Auto Trait Implementations§
impl Freeze for ResolvedFetchRef
impl RefUnwindSafe for ResolvedFetchRef
impl Send for ResolvedFetchRef
impl Sync for ResolvedFetchRef
impl Unpin for ResolvedFetchRef
impl UnsafeUnpin for ResolvedFetchRef
impl UnwindSafe for ResolvedFetchRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.