[][src]Trait conventional::commit::typed::Typed

pub trait Typed<'a> {
    fn type_(&self) -> Type<'a>;
fn scope(&self) -> Option<Scope<'a>>;
fn description(&self) -> Description<'a>;
fn body(&self) -> Option<Body<'a>>;
fn breaking(&self) -> bool;
fn trailers(&self) -> &[Trailer]; }

The strongly-typed variant of a commit.

Required methods

fn type_(&self) -> Type<'a>

The type of the commit.

fn scope(&self) -> Option<Scope<'a>>

The optional scope of the commit.

fn description(&self) -> Description<'a>

The commit description.

fn body(&self) -> Option<Body<'a>>

The commit body, containing a more detailed explanation of the commit changes.

fn breaking(&self) -> bool

A flag to signal that the commit contains breaking changes.

This flag is set either when the commit has an exclamation mark after the message type and scope, e.g.:

feat(scope)!: this is a breaking change feat!: this is a breaking change

Or when the BREAKING CHANGE: trailer is defined:

feat: my commit description

BREAKING CHANGE: this is a breaking change

fn trailers(&self) -> &[Trailer]

Loading content...

Implementors

impl<'a> Typed<'a> for Commit<'a>[src]

Loading content...