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
コミット品質スコア
Fields§
§commit_hash: Stringコミットハッシュ
commit_message: Stringコミットメッセージ
著者
date: DateTime<Local>日付
files_changed: usize変更ファイル数
insertions: usize追加行数
deletions: usize削除行数
score: f64総合スコア (0.0〜1.0)
message_score: f64メッセージ品質要素 (0.0〜0.3)
size_score: f64サイズ適切性要素 (0.0〜0.25)
test_score: f64テスト包含要素 (0.0〜0.25)
atomicity_score: f64原子性要素 (0.0〜0.2)
Implementations§
Source§impl CommitQualityScore
impl CommitQualityScore
Sourcepub fn score_color(&self) -> &'static str
pub fn score_color(&self) -> &'static str
スコアに応じた色を取得
Sourcepub fn quality_level(&self) -> &'static str
pub fn quality_level(&self) -> &'static str
品質レベルの文字列を取得
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 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