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
コミットのImpact Score(影響度スコア)
Fields§
§commit_hash: Stringコミットハッシュ
commit_message: Stringコミットメッセージ
著者
date: DateTime<Local>日付
files_changed: usize変更ファイル数
insertions: usize追加行数
deletions: usize削除行数
score: f64総合スコア (0.0〜1.0)
file_score: f64ファイル数要素 (0.0〜0.4)
change_score: f64変更行数要素 (0.0〜0.4)
heat_score: f64ファイル重要度要素 (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 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