pub struct CommitQualityScore {
pub commit_hash: String,
pub commit_message: String,
pub author: String,
pub date: DateTime<Local>,
pub files_changed: usize,
pub insertions: usize,
pub deletions: usize,
pub score: f64,
pub message_score: f64,
pub size_score: f64,
pub test_score: f64,
pub atomicity_score: f64,
}Expand description
Commit quality score
Fields§
§commit_hash: StringCommit hash
commit_message: StringCommit message
Author
date: DateTime<Local>Date
files_changed: usizeNumber of files changed
insertions: usizeLines added
deletions: usizeLines deleted
score: f64Overall score (0.0-1.0)
message_score: f64Message quality component (0.0-0.3)
size_score: f64Size appropriateness component (0.0-0.25)
test_score: f64Test inclusion component (0.0-0.25)
atomicity_score: f64Atomicity component (0.0-0.2)
Implementations§
Source§impl CommitQualityScore
impl CommitQualityScore
Sourcepub fn score_color(&self) -> &'static str
pub fn score_color(&self) -> &'static str
Get color based on score
Sourcepub fn quality_level(&self) -> &'static str
pub fn quality_level(&self) -> &'static str
Get quality level string
Trait Implementations§
Source§impl Clone for CommitQualityScore
impl Clone for CommitQualityScore
Source§fn clone(&self) -> CommitQualityScore
fn clone(&self) -> CommitQualityScore
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 moreAuto Trait Implementations§
impl Freeze for CommitQualityScore
impl RefUnwindSafe for CommitQualityScore
impl Send for CommitQualityScore
impl Sync for CommitQualityScore
impl Unpin for CommitQualityScore
impl UnsafeUnpin for CommitQualityScore
impl UnwindSafe for CommitQualityScore
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