#[non_exhaustive]pub enum PrCommitKind {
Substantive,
ConflictResolution,
ReviewFeedback,
Fixup,
WipOrCleanup,
}Expand description
Classification of a PR-branch commit’s role.
#[non_exhaustive] so future, richer taxonomies (test-only,
docs-only, dependency-bump, etc.) can add variants without a
breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Substantive
Default: substantive change worth reviewing.
ConflictResolution
Subject matched the conflict-resolution catalog AND the file set was a strict subset of prior PR-branch commits.
ReviewFeedback
Subject indicated the commit applied code-review feedback.
Fixup
git --fixup auto-generated or the manual fixup: convention.
WipOrCleanup
Subject was WIP or bare Cleanup.
Implementations§
Source§impl PrCommitKind
impl PrCommitKind
Sourcepub fn is_likely_bookkeeping(self) -> bool
pub fn is_likely_bookkeeping(self) -> bool
True when the kind is anything other than Substantive. Useful
shorthand for “skip this row by default.”
Trait Implementations§
Source§impl Clone for PrCommitKind
impl Clone for PrCommitKind
Source§fn clone(&self) -> PrCommitKind
fn clone(&self) -> PrCommitKind
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 moreimpl Copy for PrCommitKind
Source§impl Debug for PrCommitKind
impl Debug for PrCommitKind
Source§impl<'de> Deserialize<'de> for PrCommitKind
impl<'de> Deserialize<'de> for PrCommitKind
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 PrCommitKind
Source§impl PartialEq for PrCommitKind
impl PartialEq for PrCommitKind
Source§impl Serialize for PrCommitKind
impl Serialize for PrCommitKind
impl StructuralPartialEq for PrCommitKind
Auto Trait Implementations§
impl Freeze for PrCommitKind
impl RefUnwindSafe for PrCommitKind
impl Send for PrCommitKind
impl Sync for PrCommitKind
impl Unpin for PrCommitKind
impl UnsafeUnpin for PrCommitKind
impl UnwindSafe for PrCommitKind
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