pub enum CommitViolation {
Show 13 variants
InvalidHeaderFormat,
InvalidType(String),
MissingScopeWhenRequired,
ScopeNotAllowed(String),
InvalidScope(String),
EmptySubject,
SubjectTooLong {
length: usize,
max: u32,
},
MissingBreakingHeader,
MissingBreakingFooter,
InvalidBreakingFooter,
MissingTicket,
InvalidTicketFormat(String),
EmojiNotAllowed,
}Expand description
A single violation in commit validation
Variants§
InvalidHeaderFormat
InvalidType(String)
MissingScopeWhenRequired
ScopeNotAllowed(String)
InvalidScope(String)
EmptySubject
SubjectTooLong
MissingBreakingHeader
MissingTicket
InvalidTicketFormat(String)
EmojiNotAllowed
Implementations§
Trait Implementations§
Source§impl Clone for CommitViolation
impl Clone for CommitViolation
Source§fn clone(&self) -> CommitViolation
fn clone(&self) -> CommitViolation
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 CommitViolation
impl Debug for CommitViolation
Source§impl PartialEq for CommitViolation
impl PartialEq for CommitViolation
impl Eq for CommitViolation
impl StructuralPartialEq for CommitViolation
Auto Trait Implementations§
impl Freeze for CommitViolation
impl RefUnwindSafe for CommitViolation
impl Send for CommitViolation
impl Sync for CommitViolation
impl Unpin for CommitViolation
impl UnsafeUnpin for CommitViolation
impl UnwindSafe for CommitViolation
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