pub struct GitMessageConfig {
pub title: String,
pub content: String,
pub signoff: bool,
}Expand description
Configuration used when constructing a GitMessage.
Grouping the construction parameters into a dedicated config struct keeps
GitMessage::new easy to extend with future options (e.g. trailers,
scope, breaking-change markers) without breaking call sites.
Fields§
§title: StringThe commit title/subject line (will be trimmed).
content: StringThe commit body/description (will be trimmed).
signoff: boolWhether to append a Signed-off-by trailer.
Implementations§
Trait Implementations§
Source§impl Clone for GitMessageConfig
impl Clone for GitMessageConfig
Source§fn clone(&self) -> GitMessageConfig
fn clone(&self) -> GitMessageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitMessageConfig
impl Debug for GitMessageConfig
Source§impl Default for GitMessageConfig
impl Default for GitMessageConfig
Source§fn default() -> GitMessageConfig
fn default() -> GitMessageConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GitMessageConfig
impl RefUnwindSafe for GitMessageConfig
impl Send for GitMessageConfig
impl Sync for GitMessageConfig
impl Unpin for GitMessageConfig
impl UnsafeUnpin for GitMessageConfig
impl UnwindSafe for GitMessageConfig
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