Struct OwnerActivity
pub struct OwnerActivity {
pub main_author: String,
pub ownership_pct: f64,
pub days_since_main_active: i32,
pub last_main_author_commit: String,
pub n_substantial_others: u32,
}Expand description
Un-thresholded per-path owner-activity snapshot — the same
ownership/activity primitive behind KnowledgeIslandRow, but
returned for every requested path regardless of how recently the main
author committed. Callers (e.g. the agent-loop pre-write briefing)
decide what counts as “departed” by comparing days_since_main_active
against their own threshold.
Fields§
Author with the max LoC share on the path (alphabetical-first tiebreak; deterministic).
ownership_pct: f64main_author’s LoC share of the path (0-100, two decimals).
days_since_main_active: i32Days since main_author’s most-recent commit anywhere in the
repo, relative to opts.age_time_now (or now, if unset).
Calendar date (YYYY-MM-DD) of that most-recent commit.
n_substantial_others: u32Count of other authors with a LoC share on this path at or above the substantial-owner threshold.
Trait Implementations§
§impl Clone for OwnerActivity
impl Clone for OwnerActivity
§fn clone(&self) -> OwnerActivity
fn clone(&self) -> OwnerActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for OwnerActivity
impl RefUnwindSafe for OwnerActivity
impl Send for OwnerActivity
impl Sync for OwnerActivity
impl Unpin for OwnerActivity
impl UnsafeUnpin for OwnerActivity
impl UnwindSafe for OwnerActivity
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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