pub enum PolicyPreset {
Show 15 variants
Enterprise,
Strict,
Permissive,
Cra,
Ntia,
Fda,
NistSsdf,
Eo14028,
Cnsa2,
NistPqc,
BsiTr03183_2,
CraOssSteward,
EuccSubstantial,
EuAiAct,
BsiSbomForAi,
}Expand description
Available policy presets
Variants§
Enterprise
Strict
Permissive
Cra
EU Cyber Resilience Act compliance (delegates to quality::ComplianceChecker)
Ntia
NTIA Minimum Elements compliance (delegates to quality::ComplianceChecker)
Fda
FDA Medical Device compliance (delegates to quality::ComplianceChecker)
NistSsdf
NIST SP 800-218 Secure Software Development Framework
Eo14028
Executive Order 14028 Section 4
Cnsa2
NSA CNSA 2.0 — Post-Quantum Cryptography (strictest)
NistPqc
NIST PQC Readiness — IR 8547 + FIPS 203/204/205
BsiTr03183_2
BSI TR-03183-2 — German national CRA-aligned SBOM guideline
CraOssSteward
CRA Article 24 — Open-source software steward (lighter manufacturer profile)
EuccSubstantial
EUCC Substantial — Reg. (EU) 2024/482 reference profile (Annex IV)
EuAiAct
EU AI Act — Reg. (EU) 2024/1689 Annex IV technical-documentation readiness
BsiSbomForAi
BSI/G7 SBOM-for-AI — Feb 2026 minimum-elements readiness
Implementations§
Source§impl PolicyPreset
impl PolicyPreset
pub const fn next(self) -> Self
pub const fn label(self) -> &'static str
Sourcepub const fn is_standards_based(self) -> bool
pub const fn is_standards_based(self) -> bool
Whether this preset delegates to the standards-based compliance checker.
Sourcepub const fn compliance_level(self) -> Option<ComplianceLevel>
pub const fn compliance_level(self) -> Option<ComplianceLevel>
Get the corresponding ComplianceLevel for standards-based presets.
Trait Implementations§
Source§impl Clone for PolicyPreset
impl Clone for PolicyPreset
Source§fn clone(&self) -> PolicyPreset
fn clone(&self) -> PolicyPreset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PolicyPreset
Source§impl Debug for PolicyPreset
impl Debug for PolicyPreset
Source§impl Default for PolicyPreset
impl Default for PolicyPreset
Source§fn default() -> PolicyPreset
fn default() -> PolicyPreset
impl Eq for PolicyPreset
Source§impl PartialEq for PolicyPreset
impl PartialEq for PolicyPreset
Source§fn eq(&self, other: &PolicyPreset) -> bool
fn eq(&self, other: &PolicyPreset) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyPreset
Auto Trait Implementations§
impl Freeze for PolicyPreset
impl RefUnwindSafe for PolicyPreset
impl Send for PolicyPreset
impl Sync for PolicyPreset
impl Unpin for PolicyPreset
impl UnsafeUnpin for PolicyPreset
impl UnwindSafe for PolicyPreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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