Struct git_cliff_core::config::CommitPreprocessor
source · [−]pub struct CommitPreprocessor {
pub pattern: Regex,
pub replace: Option<String>,
pub replace_command: Option<String>,
}
Expand description
Preprocessor for modifying commit messages.
Fields
pattern: Regex
Regex for matching a text to replace.
replace: Option<String>
Replacement text.
replace_command: Option<String>
Command that will be run for replacing the commit message.
Trait Implementations
sourceimpl Clone for CommitPreprocessor
impl Clone for CommitPreprocessor
sourcefn clone(&self) -> CommitPreprocessor
fn clone(&self) -> CommitPreprocessor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommitPreprocessor
impl Debug for CommitPreprocessor
sourceimpl<'de> Deserialize<'de> for CommitPreprocessor
impl<'de> Deserialize<'de> for CommitPreprocessor
sourcefn 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
sourceimpl Serialize for CommitPreprocessor
impl Serialize for CommitPreprocessor
Auto Trait Implementations
impl RefUnwindSafe for CommitPreprocessor
impl Send for CommitPreprocessor
impl Sync for CommitPreprocessor
impl Unpin for CommitPreprocessor
impl UnwindSafe for CommitPreprocessor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more