pub enum CommitValidationError {
EmptyMessage,
InvalidFormat,
MissingType,
MissingDescription,
DescriptionNotLowercase,
DescriptionEndsWithPeriod,
DescriptionTooLong,
UnknownType(String),
}Expand description
Errors that can occur when validating commit messages
Variants§
EmptyMessage
InvalidFormat
MissingType
MissingDescription
DescriptionNotLowercase
DescriptionEndsWithPeriod
DescriptionTooLong
UnknownType(String)
Trait Implementations§
Source§impl Debug for CommitValidationError
impl Debug for CommitValidationError
Source§impl Display for CommitValidationError
impl Display for CommitValidationError
Source§impl Error for CommitValidationError
impl Error for CommitValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CommitValidationError
impl RefUnwindSafe for CommitValidationError
impl Send for CommitValidationError
impl Sync for CommitValidationError
impl Unpin for CommitValidationError
impl UnwindSafe for CommitValidationError
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