Skip to main contentModule report
Source - Report
- The persisted report file format.
- ReportAnnotation
- A single fuse as stored in the persisted report file.
Owned strings — no lifetimes — so it can be deserialized easily.
- ReportDiff
- The result of diffing two reports.
- build_report
- Convert a ScanResult into a Report.
generated_at should be an RFC 3339 string.
Accept it as a parameter for testability. - diff_reports
- Diff two reports.
old is the previously persisted report, new is the freshly built one. - print_diff_json
- Print a ReportDiff as JSON to stdout.
- print_diff_terminal
- Print a ReportDiff to stdout in terminal format.
- read_report
- Read a Report from a JSON file at
path.
Returns Ok(None) if the file does not exist (first run).
Returns Err if the file exists but cannot be parsed. - run_report
- Top-level entry point — called from main.rs.
- write_report
- Write a Report to a JSON file at
path.