pub enum RuleId {
Committed,
AllCommitsPushed,
BranchesHaveRemote,
NotBehindRemote,
CorrectBranch,
NotBehindBase,
}Expand description
The five logoff checks, in run order, with stable R<n> ids. Single source of
truth for logoff -vv line prefixes and the logoff -e catalog.
Variants§
Implementations§
Source§impl RuleId
impl RuleId
Sourcepub fn key(self) -> &'static str
pub fn key(self) -> &'static str
The stable, greppable check key — identical to the -v output keys.
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
One-line description for logoff -e.
Trait Implementations§
impl Copy for RuleId
impl Eq for RuleId
impl StructuralPartialEq for RuleId
Auto Trait Implementations§
impl Freeze for RuleId
impl RefUnwindSafe for RuleId
impl Send for RuleId
impl Sync for RuleId
impl Unpin for RuleId
impl UnsafeUnpin for RuleId
impl UnwindSafe for RuleId
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.