Expand description
Report — what diagnose returns and the CLI prints.
A report is a thin wrapper around a top-confidence Diagnosis
plus zero or more also_considered alternatives. It owns the
curl-shaped reproduction string and the case-level metadata that
is rendered in both the human and JSON formats.
Every formatter here must produce byte-stable output:
re-running diagnose against the same case must produce a
Report whose Report::render returns the exact same bytes,
every time, on every machine. The snapshot tests in
tests/snapshots.rs enforce this contract.
Structs§
- Diagnosis
- One firing diagnosis: the rule’s claim, its confidence, the supporting evidence, and the rule’s recommended remediation.
- Report
- Top-level result of
crate::rules::diagnose.
Enums§
- Format
- Output format for
Report::render.
Functions§
- reproduction
- Build a deterministic curl reproduction string for a case.