1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Output formatting for scan reports.
//!
//! Three formats are supported:
//!
//! | Format | Module | Use case |
//! |--------|--------|----------|
//! | [`Pretty`](OutputFormat::Pretty) | [`pretty`] | Terminal / human review |
//! | [`Json`](OutputFormat::Json) | [`json`] | Automation / scripting |
//! | [`Sarif`](OutputFormat::Sarif) | [`sarif`] | CI/CD integration |
//!
//! Use [`format_report`] to render a [`ScanReport`] in any of the above
//! formats.
use crateScanReport;
/// Supported output formats for scan reports.
/// Formats a [`ScanReport`] in the requested [`OutputFormat`].
///
/// # Examples
///
/// ```rust,no_run
/// use oxidized_agentic_audit::output::{format_report, OutputFormat};
/// # use oxidized_agentic_audit::finding::ScanReport;
/// # fn example(report: &ScanReport) {
/// let json = format_report(report, &OutputFormat::Json);
/// println!("{json}");
/// # }
/// ```