pub struct AuthorContribution {
pub commits: u32,
pub weighted_commits: f64,
pub first_commit_ts: u64,
pub last_commit_ts: u64,
}Expand description
Per-author commit aggregation for a single file.
Authors are interned via ChurnResult::author_pool indices to keep
per-file maps small and the bitcode cache compact.
Fields§
§commits: u32Total commits by this author touching this file in the analysis window.
weighted_commits: f64Recency-weighted commit sum (exponential decay, half-life 90 days).
first_commit_ts: u64Earliest commit timestamp by this author (epoch seconds).
last_commit_ts: u64Latest commit timestamp by this author (epoch seconds).
Trait Implementations§
Source§impl Clone for AuthorContribution
impl Clone for AuthorContribution
impl Copy for AuthorContribution
Source§impl Debug for AuthorContribution
impl Debug for AuthorContribution
Source§impl PartialEq for AuthorContribution
impl PartialEq for AuthorContribution
impl StructuralPartialEq for AuthorContribution
Auto Trait Implementations§
impl Freeze for AuthorContribution
impl RefUnwindSafe for AuthorContribution
impl Send for AuthorContribution
impl Sync for AuthorContribution
impl Unpin for AuthorContribution
impl UnsafeUnpin for AuthorContribution
impl UnwindSafe for AuthorContribution
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