pub struct RefListing {
pub full_name: String,
pub short_name: String,
pub oid: ObjectId,
pub peeled: Option<ObjectId>,
pub kind: RefKind,
}Expand description
One ref returned from References::query or
query_listings_from_pairs.
Fields§
§full_name: StringFull ref name (for example refs/tags/v1.0).
short_name: StringShort name within its namespace (for example v1.0 for tags).
oid: ObjectIdObject id stored at the ref (annotated tag object id for annotated tags).
peeled: Option<ObjectId>Peeled object id when the ref store or ODB provides one (often a commit).
kind: RefKindRef classification derived from full_name.
Trait Implementations§
Source§impl Clone for RefListing
impl Clone for RefListing
Source§impl Debug for RefListing
impl Debug for RefListing
impl Eq for RefListing
Source§impl PartialEq for RefListing
impl PartialEq for RefListing
impl StructuralPartialEq for RefListing
Auto Trait Implementations§
impl Freeze for RefListing
impl RefUnwindSafe for RefListing
impl Send for RefListing
impl Sync for RefListing
impl Unpin for RefListing
impl UnsafeUnpin for RefListing
impl UnwindSafe for RefListing
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.