Struct git_cliff_core::config::CommitParser
source · pub struct CommitParser {
pub sha: Option<String>,
pub message: Option<Regex>,
pub body: Option<Regex>,
pub group: Option<String>,
pub default_scope: Option<String>,
pub scope: Option<String>,
pub skip: Option<bool>,
pub field: Option<String>,
pub pattern: Option<Regex>,
}
Expand description
Parser for grouping commits.
Fields§
§sha: Option<String>
SHA1 of the commit.
message: Option<Regex>
Regex for matching the commit message.
body: Option<Regex>
Regex for matching the commit body.
group: Option<String>
Group of the commit.
default_scope: Option<String>
Default scope of the commit.
scope: Option<String>
Commit scope for overriding the default scope.
skip: Option<bool>
Whether to skip this commit group.
field: Option<String>
Field name of the commit to match the regex against.
pattern: Option<Regex>
Regex for matching the field value.
Trait Implementations§
source§impl Clone for CommitParser
impl Clone for CommitParser
source§fn clone(&self) -> CommitParser
fn clone(&self) -> CommitParser
Returns a copy 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 CommitParser
impl Debug for CommitParser
source§impl Default for CommitParser
impl Default for CommitParser
source§fn default() -> CommitParser
fn default() -> CommitParser
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommitParser
impl<'de> Deserialize<'de> for CommitParser
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitParser
impl RefUnwindSafe for CommitParser
impl Send for CommitParser
impl Sync for CommitParser
impl Unpin for CommitParser
impl UnwindSafe for CommitParser
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more