pub struct CommitQualityAnalysis {
pub commits: Vec<CommitQualityScore>,
pub total_commits: usize,
pub avg_score: f64,
pub high_quality_count: usize,
pub low_quality_count: usize,
}Expand description
Quality Score analysis result
Fields§
§commits: Vec<CommitQualityScore>Commit list (sorted by score descending)
total_commits: usizeTotal number of commits
avg_score: f64Average score
high_quality_count: usizeNumber of high quality commits (score >= 0.6)
low_quality_count: usizeNumber of low quality commits (score < 0.4)
Implementations§
Source§impl CommitQualityAnalysis
impl CommitQualityAnalysis
Sourcepub fn commit_count(&self) -> usize
pub fn commit_count(&self) -> usize
Get commit count
Trait Implementations§
Source§impl Clone for CommitQualityAnalysis
impl Clone for CommitQualityAnalysis
Source§fn clone(&self) -> CommitQualityAnalysis
fn clone(&self) -> CommitQualityAnalysis
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 CommitQualityAnalysis
impl Debug for CommitQualityAnalysis
Source§impl Default for CommitQualityAnalysis
impl Default for CommitQualityAnalysis
Source§fn default() -> CommitQualityAnalysis
fn default() -> CommitQualityAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitQualityAnalysis
impl RefUnwindSafe for CommitQualityAnalysis
impl Send for CommitQualityAnalysis
impl Sync for CommitQualityAnalysis
impl Unpin for CommitQualityAnalysis
impl UnsafeUnpin for CommitQualityAnalysis
impl UnwindSafe for CommitQualityAnalysis
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more