pub struct ReportConfig {
pub report_types: Vec<ReportType>,
pub include_unchanged: bool,
pub max_items: Option<usize>,
pub include_field_changes: bool,
pub title: Option<String>,
pub metadata: ReportMetadata,
pub only_changes: bool,
pub min_severity: Option<MinSeverity>,
pub old_cra_compliance: Option<ComplianceResult>,
pub new_cra_compliance: Option<ComplianceResult>,
pub view_cra_compliance: Option<ComplianceResult>,
}Expand description
Configuration for report generation
Fields§
§report_types: Vec<ReportType>Which report types to include
include_unchanged: boolInclude unchanged items in the report
max_items: Option<usize>Maximum items per section
include_field_changes: boolInclude detailed field changes
title: Option<String>Title for the report
metadata: ReportMetadataAdditional metadata to include
only_changes: boolOnly show items with changes (filter out unchanged)
min_severity: Option<MinSeverity>Minimum severity level for vulnerability filtering
old_cra_compliance: Option<ComplianceResult>Pre-computed CRA compliance for old SBOM (avoids redundant recomputation)
new_cra_compliance: Option<ComplianceResult>Pre-computed CRA compliance for new SBOM (avoids redundant recomputation)
view_cra_compliance: Option<ComplianceResult>Pre-computed CRA compliance for single SBOM in view mode
Implementations§
Source§impl ReportConfig
impl ReportConfig
Sourcepub fn with_types(types: Vec<ReportType>) -> Self
pub fn with_types(types: Vec<ReportType>) -> Self
Create a config for specific report types
Sourcepub fn includes(&self, report_type: ReportType) -> bool
pub fn includes(&self, report_type: ReportType) -> bool
Check if a report type should be included
Trait Implementations§
Source§impl Clone for ReportConfig
impl Clone for ReportConfig
Source§fn clone(&self) -> ReportConfig
fn clone(&self) -> ReportConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportConfig
impl Debug for ReportConfig
Source§impl Default for ReportConfig
impl Default for ReportConfig
Source§impl<'de> Deserialize<'de> for ReportConfig
impl<'de> Deserialize<'de> for ReportConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReportConfig
impl RefUnwindSafe for ReportConfig
impl Send for ReportConfig
impl Sync for ReportConfig
impl Unpin for ReportConfig
impl UnsafeUnpin for ReportConfig
impl UnwindSafe for ReportConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more