pub enum LockedGitReference {
DefaultBranch,
Branch(String),
Tag(String),
Revision(String),
}Expand description
The requested Git reference, independent of its selected full revision.
Variants§
DefaultBranch
The repository’s default branch.
Branch(String)
A named branch, after native form-percent decoding.
Tag(String)
A named tag.
Revision(String)
A requested revision expression.
Trait Implementations§
Source§impl Debug for LockedGitReference
impl Debug for LockedGitReference
impl Eq for LockedGitReference
Source§impl Hash for LockedGitReference
impl Hash for LockedGitReference
Source§impl Ord for LockedGitReference
impl Ord for LockedGitReference
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LockedGitReference
impl PartialEq for LockedGitReference
Source§impl PartialOrd for LockedGitReference
impl PartialOrd for LockedGitReference
impl StructuralPartialEq for LockedGitReference
Auto Trait Implementations§
impl Forget for LockedGitReference
impl Freeze for LockedGitReference
impl Move for LockedGitReference
impl RefUnwindSafe for LockedGitReference
impl Send for LockedGitReference
impl Sync for LockedGitReference
impl Unpin for LockedGitReference
impl UnsafeUnpin for LockedGitReference
impl UnwindSafe for LockedGitReference
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
Whether this borrowed key equals the stored key.
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.impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more