pub enum CommitType {
Feat,
Fix,
Docs,
Style,
Refactor,
Perf,
Test,
Build,
Ci,
Chore,
Revert,
Custom(String),
}Expand description
Represents the type of a conventional commit
Variants§
Feat
A new feature
Fix
A bug fix
Docs
Documentation only changes
Style
Changes that do not affect the meaning of the code
Refactor
A code change that neither fixes a bug nor adds a feature
Perf
A code change that improves performance
Test
Adding missing tests or correcting existing tests
Build
Changes to the build process or auxiliary tools and libraries
Ci
Changes to CI configuration files and scripts
Chore
Other changes that don’t modify src or test files
Revert
Reverts a previous commit
Custom(String)
Custom type not in the standard list
Trait Implementations§
Source§impl Clone for CommitType
impl Clone for CommitType
Source§fn clone(&self) -> CommitType
fn clone(&self) -> CommitType
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 CommitType
impl Debug for CommitType
Source§impl Display for CommitType
impl Display for CommitType
Source§impl From<&str> for CommitType
impl From<&str> for CommitType
Source§impl PartialEq for CommitType
impl PartialEq for CommitType
impl Eq for CommitType
impl StructuralPartialEq for CommitType
Auto Trait Implementations§
impl Freeze for CommitType
impl RefUnwindSafe for CommitType
impl Send for CommitType
impl Sync for CommitType
impl Unpin for CommitType
impl UnwindSafe for CommitType
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