pub struct ViewConfig {
pub sbom_path: PathBuf,
pub output: OutputConfig,
pub validate_ntia: bool,
pub min_severity: Option<String>,
pub vulnerable_only: bool,
pub ecosystem_filter: Option<String>,
pub fail_on_vuln: bool,
pub enrichment: EnrichmentConfig,
}Expand description
Configuration for view operations
Fields§
§sbom_path: PathBufPath to SBOM file
output: OutputConfigOutput configuration
validate_ntia: boolWhether to validate against NTIA
min_severity: Option<String>Filter by minimum vulnerability severity (critical, high, medium, low)
vulnerable_only: boolOnly show components with vulnerabilities
ecosystem_filter: Option<String>Filter by ecosystem
fail_on_vuln: boolExit with code 2 if vulnerabilities are present
enrichment: EnrichmentConfigEnrichment configuration
Trait Implementations§
Source§impl Clone for ViewConfig
impl Clone for ViewConfig
Source§fn clone(&self) -> ViewConfig
fn clone(&self) -> ViewConfig
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 ViewConfig
impl Debug for ViewConfig
Source§impl Validatable for ViewConfig
impl Validatable for ViewConfig
Auto Trait Implementations§
impl Freeze for ViewConfig
impl RefUnwindSafe for ViewConfig
impl Send for ViewConfig
impl Sync for ViewConfig
impl Unpin for ViewConfig
impl UnsafeUnpin for ViewConfig
impl UnwindSafe for ViewConfig
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