pub struct UpstreamRef {
pub name: String,
pub id: Sha1Id,
pub peeled: Option<Sha1Id>,
}Expand description
One upstream ref as listed in the staging mirror.
Fields§
§name: StringFull ref name (refs/heads/main, refs/tags/v1).
id: Sha1IdThe ref’s own id (a tag OBJECT id for annotated tags).
peeled: Option<Sha1Id>The peeled commit id for annotated tags (<ref>^{} rows).
Trait Implementations§
Source§impl Clone for UpstreamRef
impl Clone for UpstreamRef
Source§fn clone(&self) -> UpstreamRef
fn clone(&self) -> UpstreamRef
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 UpstreamRef
impl Debug for UpstreamRef
impl Eq for UpstreamRef
Source§impl PartialEq for UpstreamRef
impl PartialEq for UpstreamRef
Source§fn eq(&self, other: &UpstreamRef) -> bool
fn eq(&self, other: &UpstreamRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpstreamRef
Auto Trait Implementations§
impl Freeze for UpstreamRef
impl RefUnwindSafe for UpstreamRef
impl Send for UpstreamRef
impl Sync for UpstreamRef
impl Unpin for UpstreamRef
impl UnsafeUnpin for UpstreamRef
impl UnwindSafe for UpstreamRef
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