Skip to main content

write_scan_report

Function write_scan_report 

Source
pub fn write_scan_report<W: Write + Send>(
    writer: W,
    format: ReportFormat,
    report: ScanReport<'_>,
) -> Result<(), ReportError>
Expand description

Write a complete report from the shared scan model.

write_report remains as a compatibility wrapper for callers that only have findings. New scan paths should use this entrypoint so every renderer receives the same report object and metadata cannot be wired only to HTML.