pub struct ConventionalCommit {
pub type: String,
pub scope: Option<String>,
pub description: String,
pub body: Option<String>,
pub footers: Vec<Footer>,
pub is_breaking: bool,
}Expand description
A parsed conventional commit message.
Fields§
§type: StringThe commit type (e.g. feat, fix).
scope: Option<String>The optional scope (e.g. auth).
description: StringThe commit description (subject line after type(scope): ).
body: Option<String>The optional body, separated from the header by a blank line.
Trailer footers.
is_breaking: boolWhether this is a breaking change (! suffix or BREAKING CHANGE footer).
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 PartialEq for ConventionalCommit
impl PartialEq 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 UnsafeUnpin 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