Enum subject_classifier::Subject
source · [−]pub enum Subject {
ConventionalCommit {
breaking_change: bool,
category: Type,
scope: Option<String>,
description: String,
},
Fixup(String),
PullRequest {
id: String,
description: String,
},
Release {
version: String,
scope: Option<String>,
description: String,
},
Remove(String),
Rename(String),
Revert(String),
SubtreeCommit {
operation: SubtreeOperation,
description: String,
},
Simple(String),
}
Expand description
Classified subject
use subject_classifier::Subject;
let subject = Subject::from("feat: Some new feature");
Variants
ConventionalCommit
Conventaion Commit following the specification
Fixup(String)
Git fixup commit
PullRequest
A merged pull request
Release
Commit releasing something
Remove(String)
Something removed
Rename(String)
Something renamed
Revert(String)
Commit created by git-revert
SubtreeCommit
A commit modifying a subtree tracked bygit-stree
.
Simple(String)
Just some commit
Implementations
Trait Implementations
impl Eq for Subject
impl StructuralEq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more