pub struct CommitStyleProfile {
pub type_frequencies: HashMap<String, usize>,
pub uses_scopes: bool,
pub scope_frequencies: HashMap<String, usize>,
pub avg_description_length: f64,
pub prefix_format: PrefixFormat,
pub uses_gitmoji: bool,
pub emoji_frequencies: HashMap<String, usize>,
pub adds_period: bool,
pub capitalizes_description: bool,
}Expand description
Represents a learned style profile from commit history
Fields§
§type_frequencies: HashMap<String, usize>Most common commit types used (e.g., “feat”, “fix”)
uses_scopes: boolWhether scopes are commonly used
scope_frequencies: HashMap<String, usize>Most common scopes
avg_description_length: f64Average description length
prefix_format: PrefixFormatMost common prefix format
uses_gitmoji: boolWhether gitmoji is commonly used
emoji_frequencies: HashMap<String, usize>Most common emojis used
adds_period: boolWhether descriptions typically end with periods
capitalizes_description: boolWhether descriptions are typically capitalized
Implementations§
Trait Implementations§
Source§impl Debug for CommitStyleProfile
impl Debug for CommitStyleProfile
Source§impl Default for CommitStyleProfile
impl Default for CommitStyleProfile
Source§fn default() -> CommitStyleProfile
fn default() -> CommitStyleProfile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitStyleProfile
impl RefUnwindSafe for CommitStyleProfile
impl Send for CommitStyleProfile
impl Sync for CommitStyleProfile
impl Unpin for CommitStyleProfile
impl UnwindSafe for CommitStyleProfile
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.