Struct git_cliff_core::config::TextProcessor
source · pub struct TextProcessor {
pub pattern: Regex,
pub replace: Option<String>,
pub replace_command: Option<String>,
}
Expand description
TextProcessor, e.g. 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.
Implementations§
Trait Implementations§
source§impl Clone for TextProcessor
impl Clone for TextProcessor
source§fn clone(&self) -> TextProcessor
fn clone(&self) -> TextProcessor
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 TextProcessor
impl Debug for TextProcessor
source§impl<'de> Deserialize<'de> for TextProcessor
impl<'de> Deserialize<'de> for TextProcessor
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 TextProcessor
impl RefUnwindSafe for TextProcessor
impl Send for TextProcessor
impl Sync for TextProcessor
impl Unpin for TextProcessor
impl UnwindSafe for TextProcessor
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