pub struct SarifReporter { /* private fields */ }Expand description
SARIF report generator
Implementations§
Source§impl SarifReporter
impl SarifReporter
Sourcepub const fn include_info(self, include: bool) -> Self
pub const fn include_info(self, include: bool) -> Self
Set whether to include informational results
Trait Implementations§
Source§impl Default for SarifReporter
impl Default for SarifReporter
Source§impl ReportGenerator for SarifReporter
impl ReportGenerator for SarifReporter
Source§fn generate_diff_report(
&self,
result: &DiffResult,
old_sbom: &NormalizedSbom,
new_sbom: &NormalizedSbom,
config: &ReportConfig,
) -> Result<String, ReportError>
fn generate_diff_report( &self, result: &DiffResult, old_sbom: &NormalizedSbom, new_sbom: &NormalizedSbom, config: &ReportConfig, ) -> Result<String, ReportError>
Generate a report from diff results
Source§fn generate_view_report(
&self,
sbom: &NormalizedSbom,
config: &ReportConfig,
) -> Result<String, ReportError>
fn generate_view_report( &self, sbom: &NormalizedSbom, config: &ReportConfig, ) -> Result<String, ReportError>
Generate a report for a single SBOM (view mode)
Source§fn format(&self) -> ReportFormat
fn format(&self) -> ReportFormat
Get the format this generator produces
Source§fn write_diff_report(
&self,
result: &DiffResult,
old_sbom: &NormalizedSbom,
new_sbom: &NormalizedSbom,
config: &ReportConfig,
writer: &mut dyn Write,
) -> Result<(), ReportError>
fn write_diff_report( &self, result: &DiffResult, old_sbom: &NormalizedSbom, new_sbom: &NormalizedSbom, config: &ReportConfig, writer: &mut dyn Write, ) -> Result<(), ReportError>
Write report to a writer
Auto Trait Implementations§
impl Freeze for SarifReporter
impl RefUnwindSafe for SarifReporter
impl Send for SarifReporter
impl Sync for SarifReporter
impl Unpin for SarifReporter
impl UnsafeUnpin for SarifReporter
impl UnwindSafe for SarifReporter
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WriterReporter for Twhere
T: ReportGenerator,
impl<T> WriterReporter for Twhere
T: ReportGenerator,
Source§fn write_diff_to<W>(
&self,
result: &DiffResult,
old_sbom: &NormalizedSbom,
new_sbom: &NormalizedSbom,
config: &ReportConfig,
writer: &mut W,
) -> Result<(), ReportError>where
W: Write,
fn write_diff_to<W>(
&self,
result: &DiffResult,
old_sbom: &NormalizedSbom,
new_sbom: &NormalizedSbom,
config: &ReportConfig,
writer: &mut W,
) -> Result<(), ReportError>where
W: Write,
Write a diff report to a writer. Read more
Source§fn write_view_to<W>(
&self,
sbom: &NormalizedSbom,
config: &ReportConfig,
writer: &mut W,
) -> Result<(), ReportError>where
W: Write,
fn write_view_to<W>(
&self,
sbom: &NormalizedSbom,
config: &ReportConfig,
writer: &mut W,
) -> Result<(), ReportError>where
W: Write,
Write a view report to a writer.
Source§fn format(&self) -> ReportFormat
fn format(&self) -> ReportFormat
Get the format this reporter produces