pub struct CommitImpactScore {
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 file_score: f64,
pub change_score: f64,
pub heat_score: f64,
}Expand description
Commit Impact Score (influence 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)
file_score: f64File count component (0.0-0.4)
change_score: f64Lines changed component (0.0-0.4)
heat_score: f64File importance component (0.0-0.2)
Implementations§
Trait Implementations§
Source§impl Clone for CommitImpactScore
impl Clone for CommitImpactScore
Source§fn clone(&self) -> CommitImpactScore
fn clone(&self) -> CommitImpactScore
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 CommitImpactScore
impl RefUnwindSafe for CommitImpactScore
impl Send for CommitImpactScore
impl Sync for CommitImpactScore
impl Unpin for CommitImpactScore
impl UnsafeUnpin for CommitImpactScore
impl UnwindSafe for CommitImpactScore
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