pub enum KeepReason {
HeldByLiveSession,
Excluded,
OpenChangeRequest,
CheckedOut,
DirtyWorktree,
UnmergedUniqueCommits,
Unknown,
IsBase,
ClosedChangeRequest,
}Expand description
Why a branch is kept.
Variants§
HeldByLiveSession
An open session whose owner is running — or whose run root something is working in — holds it.
Excluded
The caller excluded it.
OpenChangeRequest
A change request opened from it is neither merged nor closed.
CheckedOut
A registered checkout has it checked out.
DirtyWorktree
A worktree over it has uncommitted changes.
UnmergedUniqueCommits
Nothing proves it holds no work beyond its base.
Unknown
A read needed to decide failed.
IsBase
It is the base, or its tip is one the base already carries.
ClosedChangeRequest
The change request opened from it was closed without merging: nothing the host did landed it, so whatever it holds is still work nobody published.
Implementations§
Trait Implementations§
Source§impl Clone for KeepReason
impl Clone for KeepReason
impl Copy for KeepReason
Source§impl Debug for KeepReason
impl Debug for KeepReason
Source§impl<'de> Deserialize<'de> for KeepReason
impl<'de> Deserialize<'de> for KeepReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeepReason
Source§impl Ord for KeepReason
impl Ord for KeepReason
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 KeepReason
impl PartialEq for KeepReason
Source§impl PartialOrd for KeepReason
impl PartialOrd for KeepReason
Source§impl Serialize for KeepReason
impl Serialize for KeepReason
impl StructuralPartialEq for KeepReason
Auto Trait Implementations§
impl Freeze for KeepReason
impl RefUnwindSafe for KeepReason
impl Send for KeepReason
impl Sync for KeepReason
impl Unpin for KeepReason
impl UnsafeUnpin for KeepReason
impl UnwindSafe for KeepReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.