pub struct RemoteRefs {
pub head: Option<String>,
pub tags: Vec<RemoteTag>,
}Expand description
What one ls-remote says about a repository: the commit its HEAD names
and every tag it publishes.
Fields§
§head: Option<String>The commit HEAD names now: the branch a /tree/<branch> URL selects,
otherwise the remote’s default branch. None when the remote
advertises no such ref, as for an empty repository or a /tree/
segment that names a commit rather than a branch.
Trait Implementations§
Source§impl Clone for RemoteRefs
impl Clone for RemoteRefs
Source§fn clone(&self) -> RemoteRefs
fn clone(&self) -> RemoteRefs
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 RemoteRefs
impl Debug for RemoteRefs
impl Eq for RemoteRefs
Source§impl PartialEq for RemoteRefs
impl PartialEq for RemoteRefs
impl StructuralPartialEq for RemoteRefs
Auto Trait Implementations§
impl Freeze for RemoteRefs
impl RefUnwindSafe for RemoteRefs
impl Send for RemoteRefs
impl Sync for RemoteRefs
impl Unpin for RemoteRefs
impl UnsafeUnpin for RemoteRefs
impl UnwindSafe for RemoteRefs
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.