pub struct TailorConfig {
pub include_license_families: Vec<LicenseFamily>,
pub exclude_ecosystems: Vec<String>,
pub include_types: Vec<String>,
pub include_name_pattern: Option<String>,
pub strip_vulns: bool,
pub strip_extensions: bool,
}Expand description
Configuration for SBOM tailoring
Fields§
§include_license_families: Vec<LicenseFamily>Include only components matching these license families
exclude_ecosystems: Vec<String>Exclude components matching these ecosystems
include_types: Vec<String>Include only these component types (library, application, etc.)
include_name_pattern: Option<String>Include only components matching this name pattern
strip_vulns: boolStrip vulnerability data from output
strip_extensions: boolStrip extension/property data
Trait Implementations§
Source§impl Clone for TailorConfig
impl Clone for TailorConfig
Source§fn clone(&self) -> TailorConfig
fn clone(&self) -> TailorConfig
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 TailorConfig
impl Debug for TailorConfig
Source§impl Default for TailorConfig
impl Default for TailorConfig
Source§fn default() -> TailorConfig
fn default() -> TailorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TailorConfig
impl<'de> Deserialize<'de> for TailorConfig
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 TailorConfig
impl RefUnwindSafe for TailorConfig
impl Send for TailorConfig
impl Sync for TailorConfig
impl Unpin for TailorConfig
impl UnsafeUnpin for TailorConfig
impl UnwindSafe for TailorConfig
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