pub enum AttestationRuleFamily {
Ssdf,
Eo14028,
Cra,
}Expand description
Engine rule families that CDXA evidence can strengthen. Requirements whose (standard, identifier) pair classifies into none of these are recorded but satisfy nothing (unknown-content handling: fail-open for recognition, fail-closed for satisfaction).
Variants§
Ssdf
NIST SSDF practice rules (SBOM-SSDF-*).
Eo14028
EO 14028 4(e) rules (SBOM-EO14028-*).
Cra
EU CRA conformity rules (SBOM-CRA-*).
Implementations§
Source§impl AttestationRuleFamily
impl AttestationRuleFamily
Sourcepub fn classify(
standard: &DefinedStandard,
requirement: &DefinedRequirement,
) -> Option<Self>
pub fn classify( standard: &DefinedStandard, requirement: &DefinedRequirement, ) -> Option<Self>
Classify a (standard, requirement) pair into an engine rule family.
Standard-level text wins over identifier shape so that, e.g., an
EO 14028 encoding that reuses SSDF practice identifiers classifies as
EO 14028; unlabeled standards fall back to the SSDF practice-identifier
pattern (PO.n / PS.n / PW.n / RV.n). Returns None for
unknown pairs — recorded, but never able to influence a verdict.
Trait Implementations§
Source§impl Clone for AttestationRuleFamily
impl Clone for AttestationRuleFamily
Source§fn clone(&self) -> AttestationRuleFamily
fn clone(&self) -> AttestationRuleFamily
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 AttestationRuleFamily
Source§impl Debug for AttestationRuleFamily
impl Debug for AttestationRuleFamily
impl Eq for AttestationRuleFamily
Source§impl Hash for AttestationRuleFamily
impl Hash for AttestationRuleFamily
Source§impl PartialEq for AttestationRuleFamily
impl PartialEq for AttestationRuleFamily
impl StructuralPartialEq for AttestationRuleFamily
Auto Trait Implementations§
impl Freeze for AttestationRuleFamily
impl RefUnwindSafe for AttestationRuleFamily
impl Send for AttestationRuleFamily
impl Sync for AttestationRuleFamily
impl Unpin for AttestationRuleFamily
impl UnsafeUnpin for AttestationRuleFamily
impl UnwindSafe for AttestationRuleFamily
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