pub struct TargetChurnOptions<'a> {
pub root: &'a Path,
pub target: &'a Path,
pub cache_dir: PathBuf,
pub no_cache: bool,
pub since: Option<&'a str>,
pub min_commits: Option<u32>,
}Expand description
Focused inputs for target-level churn evidence.
This reuses the health hotspot churn cache without running project parsing, file scoring, or any other health section.
Fields§
§root: &'a PathProject root containing the git repository.
target: &'a PathNormalized project-relative path of the file to fetch churn for.
cache_dir: PathBufDirectory holding the shared hotspot churn cache.
no_cache: boolBypass the churn cache and re-run git log.
since: Option<&'a str>Churn lookback window (90d, 6m, 1y, or an ISO date); None uses
the default window.
min_commits: Option<u32>Minimum commit count for the target to qualify as churn evidence.
Auto Trait Implementations§
impl<'a> Freeze for TargetChurnOptions<'a>
impl<'a> RefUnwindSafe for TargetChurnOptions<'a>
impl<'a> Send for TargetChurnOptions<'a>
impl<'a> Sync for TargetChurnOptions<'a>
impl<'a> Unpin for TargetChurnOptions<'a>
impl<'a> UnsafeUnpin for TargetChurnOptions<'a>
impl<'a> UnwindSafe for TargetChurnOptions<'a>
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> 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