pub struct CommitModel {Show 16 fields
pub subject_max_length: u32,
pub use_emojis: bool,
pub types: Vec<CommitTypeModel>,
pub scope_requirement: ScopeRequirement,
pub restrict_scopes_to_defined: bool,
pub allowed_scopes: Option<Vec<String>>,
pub require_conventional: bool,
pub breaking_header_required: bool,
pub breaking_footer_required: bool,
pub breaking_footer_key: String,
pub breaking_footer_keys: Vec<String>,
pub breaking_emoji: Option<String>,
pub breaking_emoji_mode: EmojiMode,
pub ticket: TicketPolicy,
pub header_format: HeaderFormatPolicy,
pub protected: CommitProtectedModel,
}Fields§
§subject_max_length: u32§use_emojis: bool§types: Vec<CommitTypeModel>§scope_requirement: ScopeRequirement§restrict_scopes_to_defined: bool§allowed_scopes: Option<Vec<String>>§require_conventional: bool§breaking_header_required: bool§breaking_emoji: Option<String>§breaking_emoji_mode: EmojiMode§ticket: TicketPolicy§header_format: HeaderFormatPolicy§protected: CommitProtectedModelImplementations§
Source§impl CommitModel
impl CommitModel
pub fn from_config(config: &ResolvedConfig) -> Self
pub fn allows_type(&self, value: &str) -> bool
pub fn find_type(&self, value: &str) -> Option<&CommitTypeModel>
pub fn allows_scope(&self, value: &str) -> bool
Trait Implementations§
Source§impl Clone for CommitModel
impl Clone for CommitModel
Source§fn clone(&self) -> CommitModel
fn clone(&self) -> CommitModel
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 CommitModel
impl Debug for CommitModel
Auto Trait Implementations§
impl Freeze for CommitModel
impl RefUnwindSafe for CommitModel
impl Send for CommitModel
impl Sync for CommitModel
impl Unpin for CommitModel
impl UnsafeUnpin for CommitModel
impl UnwindSafe for CommitModel
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