pub struct DeclaredClaim {
pub bom_ref: Option<String>,
pub target: Option<CdxaRef>,
pub predicate: Option<String>,
pub mitigation_strategies: Vec<CdxaRef>,
pub reasoning: Option<String>,
pub evidence: Vec<CdxaRef>,
pub counter_evidence: Vec<CdxaRef>,
pub external_refs: Vec<ExternalReference>,
pub signature: Option<SignaturePresence>,
}Expand description
A declarations.claims[] entry: a statement about a target.
Fields§
§bom_ref: Option<String>§target: Option<CdxaRef>refLink to the target the claim applies to. The schema permits any
bom-ref’d element (team, process, business unit, …); this engine
resolves against declarations.targets entries and the BOM inventory
(a fail-closed design choice of this tool, not schema text).
predicate: Option<String>The specific statement or assertion about the target.
mitigation_strategies: Vec<CdxaRef>refLinks to evidence describing how weaknesses in the claim’s evidence are mitigated.
reasoning: Option<String>Why the evidence substantiates the claim.
evidence: Vec<CdxaRef>refLinks into declarations.evidence[] supporting the claim.
counter_evidence: Vec<CdxaRef>refLinks to counter evidence. Any entry contests the claim: the claim then supports nothing (surfaced, never silently passed).
external_refs: Vec<ExternalReference>§signature: Option<SignaturePresence>JSF signature presence (structural only, never verified).
Trait Implementations§
Source§impl Clone for DeclaredClaim
impl Clone for DeclaredClaim
Source§fn clone(&self) -> DeclaredClaim
fn clone(&self) -> DeclaredClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeclaredClaim
impl Debug for DeclaredClaim
Source§impl Default for DeclaredClaim
impl Default for DeclaredClaim
Source§fn default() -> DeclaredClaim
fn default() -> DeclaredClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeclaredClaim
impl<'de> Deserialize<'de> for DeclaredClaim
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
Source§impl PartialEq for DeclaredClaim
impl PartialEq for DeclaredClaim
Source§impl Serialize for DeclaredClaim
impl Serialize for DeclaredClaim
impl StructuralPartialEq for DeclaredClaim
Auto Trait Implementations§
impl Freeze for DeclaredClaim
impl RefUnwindSafe for DeclaredClaim
impl Send for DeclaredClaim
impl Sync for DeclaredClaim
impl Unpin for DeclaredClaim
impl UnsafeUnpin for DeclaredClaim
impl UnwindSafe for DeclaredClaim
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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