pub struct ConventionalCommit {
pub commit_type: CommitType,
pub scope: Option<String>,
pub breaking_change: bool,
pub description: String,
pub body: Option<String>,
pub footers: Vec<String>,
}Expand description
Represents a parsed conventional commit
Fields§
§commit_type: CommitTypeThe type of the commit
scope: Option<String>Optional scope of the commit
breaking_change: boolWhether this commit contains breaking changes
description: StringThe description of the commit
body: Option<String>Optional body of the commit message
Optional footers of the commit message
Implementations§
Source§impl ConventionalCommit
impl ConventionalCommit
Sourcepub fn is_breaking_change(&self) -> bool
pub fn is_breaking_change(&self) -> bool
Returns true if this commit represents a breaking change
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 moreAuto 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