pub struct Scorecard {
pub scores: Scores,
pub data_quality: DataQuality,
pub details: Details,
pub token_economy: TokenEconomy,
pub drill_down: Option<DrillDown>,
pub matched_nothing: bool,
pub scoped: bool,
}Fields§
§scores: Scores§data_quality: DataQuality§details: Details§token_economy: TokenEconomy§drill_down: Option<DrillDown>§matched_nothing: boolTrue when no symbol matched — every score is zero because there was nothing to score, which is a different claim from “scored zero”. Callers phrase their own advice for this case.
scoped: boolTrue when a scope/paths filter was applied at all. With
matched_nothing, distinguishes “your filter matched nothing” from
“this repo has never been indexed”.
Implementations§
Source§impl Scorecard
impl Scorecard
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
The shared JSON envelope: capability_scores + the legacy scores
alias, the qualifying blocks, and the drill-down when one was asked
for.
scores duplicates capability_scores because the CLI’s trend
snapshots on disk are keyed on scores — dropping it would orphan
every stored history file. Callers add their own timestamp / trend
/ note around this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scorecard
impl RefUnwindSafe for Scorecard
impl Send for Scorecard
impl Sync for Scorecard
impl Unpin for Scorecard
impl UnsafeUnpin for Scorecard
impl UnwindSafe for Scorecard
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