pub enum ReportFormat {
Show 14 variants
Text {
color: bool,
example_suppressions: usize,
dogfood_active: bool,
},
Json,
JsonEnvelope {
coverage_gap_summary: Vec<(String, usize)>,
},
Jsonl,
JsonlEnvelope {
coverage_gap_summary: Vec<(String, usize)>,
},
Sarif {
skip_summary: Vec<(String, usize)>,
},
Csv,
GithubAnnotations,
GithubAnnotationsCoverage {
skip_summary: Vec<(String, usize)>,
},
GitlabSast {
scan_started_at: String,
scan_finished_at: String,
},
GitlabSastCoverage {
scan_started_at: String,
scan_finished_at: String,
skip_summary: Vec<(String, usize)>,
},
Html {
skip_summary: Vec<(String, usize)>,
metadata: Option<HtmlScanMetadata>,
},
Junit,
JunitCoverage {
skip_summary: Vec<(String, usize)>,
},
}Expand description
Output format and formatter options for write_report.
Variants§
Text
Human-oriented terminal output.
Fields
Json
JSON array output.
JsonEnvelope
Versioned JSON envelope output and its scan-wide coverage summary.
Fields
Jsonl
Newline-delimited JSON output.
JsonlEnvelope
Versioned newline-delimited JSON output with a stream header.
Fields
Sarif
SARIF output.
Csv
CSV output.
GithubAnnotations
GitHub Actions workflow command annotations.
GithubAnnotationsCoverage
GitHub Actions annotations with a terminal scan coverage notice.
Fields
GitlabSast
GitLab SAST security report JSON.
Fields
GitlabSastCoverage
GitLab SAST output with scan-wide coverage status.
Fields
Html
Self-contained HTML output.
Fields
skip_summary: Vec<(String, usize)>Operator-visible scan coverage-gap summary entries (same data the SARIF report surfaces), rendered as a “coverage” panel so the report never reads as a clean bill of health when files went unscanned.
metadata: Option<HtmlScanMetadata>Scan identity, timing, target, and size metadata for the report hero.
Junit
JUnit XML output.
JunitCoverage
JUnit XML output with deterministic scan coverage properties.
Auto Trait Implementations§
impl Freeze for ReportFormat
impl RefUnwindSafe for ReportFormat
impl Send for ReportFormat
impl Sync for ReportFormat
impl Unpin for ReportFormat
impl UnsafeUnpin for ReportFormat
impl UnwindSafe for ReportFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more