Struct conventional_commit_parser::commit::ConventionalCommit[][src]

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: CommitType

The commit type, fix, feat etc.

scope: Option<String>

An optional scope

summary: String

Commit description summary

body: Option<String>

An optional commit body

footers: Vec<Footer>

A list of commit footers

is_breaking_change: bool

A commit that has a footer BREAKING CHANGE or a ! after the commit type and scope

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.