pub struct ConventionalCommit {
    pub commit_type: CommitType,
    pub scope: Option<String>,
    pub summary: String,
    pub body: Option<String>,
    pub footers: Vec<Footer>,
    pub is_breaking_change: bool,
}Expand description
A conventional commit compliant commit message produced by the parse function
Fields§
§commit_type: CommitTypeThe commit type, fix, feat etc.
scope: Option<String>An optional scope
summary: StringCommit description summary
body: Option<String>An optional commit body
A list of commit footers
is_breaking_change: boolA commit that has a footer BREAKING CHANGE or a ! after the commit type and scope
Implementations§
Source§impl ConventionalCommit
 
impl ConventionalCommit
pub fn set_commit_type(&mut self, pair: &Pair<'_, Rule>)
Trait Implementations§
Source§impl Clone for ConventionalCommit
 
impl Clone for ConventionalCommit
Source§fn clone(&self) -> ConventionalCommit
 
fn clone(&self) -> ConventionalCommit
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 ConventionalCommit
 
impl Debug for ConventionalCommit
Source§impl Default for ConventionalCommit
 
impl Default for ConventionalCommit
Source§impl PartialEq for ConventionalCommit
 
impl PartialEq for ConventionalCommit
Source§impl ToString for ConventionalCommit
 
impl ToString for ConventionalCommit
impl Eq for ConventionalCommit
impl StructuralPartialEq for ConventionalCommit
Auto Trait Implementations§
impl Freeze for ConventionalCommit
impl RefUnwindSafe for ConventionalCommit
impl Send for ConventionalCommit
impl Sync for ConventionalCommit
impl Unpin for ConventionalCommit
impl UnwindSafe for ConventionalCommit
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