pub struct GitFileHistory {
pub commit_count: u32,
pub churn_score: f32,
pub last_commit: CommitSummary,
pub contributors: Vec<ContributorShare>,
pub co_changes: Vec<CoChangeEntry>,
pub weak_co_changes: Vec<CoChangeEntry>,
}Expand description
Per-file temporal metadata derived from git history.
Fields§
§commit_count: u32Total commits touching this file within the analysis window.
churn_score: f32Recency-weighted churn score, rank-normalized to 0.0–1.0 across the entire repo. Uses exponential decay with a 14-day half-life so recent commits dominate. Rank-normalized means the hottest file in the repo is always ~1.0, the coldest ~0.0.
last_commit: CommitSummaryMost recent commit touching this file.
contributors: Vec<ContributorShare>Ownership distribution — who actually maintains this file, sorted by commit share descending. Capped at top 5 contributors.
co_changes: Vec<CoChangeEntry>Files that co-change with this one, ranked by Jaccard coupling strength. Capped at top 5.
weak_co_changes: Vec<CoChangeEntry>Lower-confidence co-change candidates that missed the strong threshold but still have some evidence. Only shown when strong matches are absent.
Trait Implementations§
Source§impl Clone for GitFileHistory
impl Clone for GitFileHistory
Source§fn clone(&self) -> GitFileHistory
fn clone(&self) -> GitFileHistory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitFileHistory
impl RefUnwindSafe for GitFileHistory
impl Send for GitFileHistory
impl Sync for GitFileHistory
impl Unpin for GitFileHistory
impl UnsafeUnpin for GitFileHistory
impl UnwindSafe for GitFileHistory
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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