pub struct CommitConfig {
pub allowed_types: Vec<String>,
pub max_length: usize,
pub auto_commit: bool,
pub verify_format: bool,
pub require_confirmation: bool,
}Fields§
§allowed_types: Vec<String>List of allowed commit types
max_length: usizeMaximum length of commit message
auto_commit: boolWhether to automatically commit after generating message
verify_format: boolWhether to verify commit message format
require_confirmation: boolWhether to require user confirmation before committing
Trait Implementations§
Source§impl Clone for CommitConfig
impl Clone for CommitConfig
Source§fn clone(&self) -> CommitConfig
fn clone(&self) -> CommitConfig
Returns a duplicate 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 CommitConfig
impl Debug for CommitConfig
Source§impl Default for CommitConfig
impl Default for CommitConfig
Source§impl<'de> Deserialize<'de> for CommitConfig
impl<'de> Deserialize<'de> for CommitConfig
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 CommitConfig
impl RefUnwindSafe for CommitConfig
impl Send for CommitConfig
impl Sync for CommitConfig
impl Unpin for CommitConfig
impl UnwindSafe for CommitConfig
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