pub struct HealthRunOptions<'a> {
pub thresholds: HealthThresholdOverrides,
pub top: Option<usize>,
pub sort: HealthSort,
pub sections: DerivedHealthSections,
pub ownership: bool,
pub ownership_emails: Option<EmailMode>,
pub effort: Option<EffortEstimate>,
pub gates: HealthGateOptions,
pub since: Option<&'a str>,
pub min_commits: Option<u32>,
pub coverage_inputs: HealthCoverageInputs<'a>,
pub runtime_coverage: Option<RuntimeCoverageOptions>,
}Expand description
Normalized health inputs shared by CLI, API, NAPI, and future runners.
Fields§
§thresholds: HealthThresholdOverridesComplexity threshold overrides on top of the resolved config.
top: Option<usize>Cap on rendered findings per section.
sort: HealthSortSort criteria for complexity findings.
sections: DerivedHealthSectionsEffective section selection derived from the raw request flags.
ownership: boolAttribute hotspots to owners; already gated on the hotspots section.
ownership_emails: Option<EmailMode>How owner identities are rendered (names or emails).
effort: Option<EffortEstimate>Effort estimation mode for refactoring targets.
gates: HealthGateOptionsExit gate thresholds.
since: Option<&'a str>Churn lookback window for hotspots (90d, 6m, 1y, or an ISO date).
min_commits: Option<u32>Minimum commit count for a file to qualify as churn evidence.
coverage_inputs: HealthCoverageInputs<'a>Istanbul coverage inputs for CRAP scoring.
runtime_coverage: Option<RuntimeCoverageOptions>Runtime coverage sidecar options, when runtime analysis was requested.
Trait Implementations§
Source§impl<'a> Clone for HealthRunOptions<'a>
impl<'a> Clone for HealthRunOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for HealthRunOptions<'a>
impl<'a> RefUnwindSafe for HealthRunOptions<'a>
impl<'a> Send for HealthRunOptions<'a>
impl<'a> Sync for HealthRunOptions<'a>
impl<'a> Unpin for HealthRunOptions<'a>
impl<'a> UnsafeUnpin for HealthRunOptions<'a>
impl<'a> UnwindSafe for HealthRunOptions<'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> 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