pub enum GitRefKind {
Tag,
Branch,
Sha,
Unknown,
}Expand description
Which git ref namespace a KernelId::Git’s git_ref names,
chosen explicitly by the operator via the #tag= / #branch= /
#sha= fragment — never DWIM-inferred.
Variants§
Tag
#tag=v6.14 → an annotated or lightweight tag (refs/tags/).
Branch
#branch=for-next → a branch head (refs/heads/).
Sha
#sha=<40-hex> → a raw commit id.
Unknown
A bare #REF fragment (no kind=) or an unrecognized selector;
carried so KernelId::validate can emit an actionable error.
Never resolved.
Trait Implementations§
Source§impl Clone for GitRefKind
impl Clone for GitRefKind
Source§fn clone(&self) -> GitRefKind
fn clone(&self) -> GitRefKind
Returns a duplicate of the value. Read more
1.0.0 · 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 GitRefKind
impl Debug for GitRefKind
Source§impl PartialEq for GitRefKind
impl PartialEq for GitRefKind
impl Copy for GitRefKind
impl Eq for GitRefKind
impl StructuralPartialEq for GitRefKind
Auto Trait Implementations§
impl Freeze for GitRefKind
impl RefUnwindSafe for GitRefKind
impl Send for GitRefKind
impl Sync for GitRefKind
impl Unpin for GitRefKind
impl UnwindSafe for GitRefKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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