enum SubjectError {
InvalidType,
UnclosedScope,
InvalidScope,
MissingSeparator,
EmptyDescription,
}Expand description
A subject line that is not a Conventional Commit.
Variants§
InvalidType
The type is empty or holds whitespace or parentheses.
UnclosedScope
The scope has no closing parenthesis.
InvalidScope
The scope is empty or holds whitespace or parentheses.
MissingSeparator
The type is not followed by a colon and a space.
EmptyDescription
Nothing follows the separator.
Trait Implementations§
Source§impl Clone for SubjectError
impl Clone for SubjectError
Source§fn clone(&self) -> SubjectError
fn clone(&self) -> SubjectError
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 SubjectError
Source§impl Debug for SubjectError
impl Debug for SubjectError
Source§impl Display for SubjectError
impl Display for SubjectError
impl Eq for SubjectError
Source§impl Error for SubjectError
impl Error for SubjectError
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()
Source§impl PartialEq for SubjectError
impl PartialEq for SubjectError
impl StructuralPartialEq for SubjectError
Auto Trait Implementations§
impl Freeze for SubjectError
impl RefUnwindSafe for SubjectError
impl Send for SubjectError
impl Sync for SubjectError
impl Unpin for SubjectError
impl UnsafeUnpin for SubjectError
impl UnwindSafe for SubjectError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.