Struct CodeHealthRow
pub struct CodeHealthRow {
pub path: String,
pub cognitive: f64,
pub score: f64,
pub structural_risk: f64,
pub percentile: f64,
pub band: String,
pub corpus_percentile: Option<f64>,
pub beyond_corpus: bool,
pub corpus_percentile_ci_low: Option<f64>,
pub corpus_percentile_ci_high: Option<f64>,
}Fields§
§path: String§cognitive: f64§score: f64§structural_risk: f64§percentile: f64§band: String§corpus_percentile: Option<f64>Corpus-relative percentile: the file’s WORST raw dimension
(cyclomatic, cognitive, sloc, nargs, max_nesting) versus a
reference corpus, in 0..=1. None when no calibration artifact is
active or the file’s language / metrics aren’t covered — an additive
lens that never perturbs the shipped self-relative fields above.
beyond_corpus: boolAt least one of the file’s raw metrics exceeded the corpus maximum
breakpoint (its corpus_percentile saturated at 1.0). Serialized only
when true.
corpus_percentile_ci_low: Option<f64>Wilson 95% lower / upper bound for corpus_percentile, reflecting the
sampling uncertainty of the reference pool (a finite corpus sample, not
the population) — not measurement error in the file’s own metrics. Some
exactly when corpus_percentile is Some; the pool size is the file
language’s pooled per-function sample count. Serialized only when present,
so a run without an active corpus stays byte-identical.
corpus_percentile_ci_high: Option<f64>Trait Implementations§
§impl Clone for CodeHealthRow
impl Clone for CodeHealthRow
§fn clone(&self) -> CodeHealthRow
fn clone(&self) -> CodeHealthRow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CodeHealthRow
impl Debug for CodeHealthRow
§impl Serialize for CodeHealthRow
impl Serialize for CodeHealthRow
Auto Trait Implementations§
impl Freeze for CodeHealthRow
impl RefUnwindSafe for CodeHealthRow
impl Send for CodeHealthRow
impl Sync for CodeHealthRow
impl Unpin for CodeHealthRow
impl UnsafeUnpin for CodeHealthRow
impl UnwindSafe for CodeHealthRow
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