pub enum BranchVerdict {
OnFeature,
IntegrationClean,
DetachedHead,
BaseUnresolved,
LocalUnmerged(String),
RemoteFeature(String),
}Expand description
The outcome of the correct-branch check, rich enough to explain why it
failed (surfaced by logoff -vv’s R5 reason line). Only the two passing
variants make BranchVerdict::passed true.
Variants§
OnFeature
On a feature branch — actively on your work (passes).
IntegrationClean
On an integration branch with nothing pending under the active rule (passes).
DetachedHead
Detached HEAD — not on any branch (a risky resting state).
BaseUnresolved
Base branch couldn’t be resolved, so the check can’t certify anything.
LocalUnmerged(String)
TEAM rule: this local branch isn’t merged into base (your unfinished work).
RemoteFeature(String)
SOLO rule: the remote has this feature branch.
Implementations§
Trait Implementations§
Source§impl Clone for BranchVerdict
impl Clone for BranchVerdict
Source§fn clone(&self) -> BranchVerdict
fn clone(&self) -> BranchVerdict
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 BranchVerdict
impl Debug for BranchVerdict
impl Eq for BranchVerdict
Source§impl PartialEq for BranchVerdict
impl PartialEq for BranchVerdict
Source§fn eq(&self, other: &BranchVerdict) -> bool
fn eq(&self, other: &BranchVerdict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BranchVerdict
Auto Trait Implementations§
impl Freeze for BranchVerdict
impl RefUnwindSafe for BranchVerdict
impl Send for BranchVerdict
impl Sync for BranchVerdict
impl Unpin for BranchVerdict
impl UnsafeUnpin for BranchVerdict
impl UnwindSafe for BranchVerdict
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.