pub struct DeclaredEvidence {
pub bom_ref: Option<String>,
pub property_name: Option<String>,
pub description: Option<String>,
pub data: Vec<EvidenceDataItem>,
pub created: Option<DateTime<Utc>>,
pub expires: Option<DateTime<Utc>>,
pub author: Option<Contact>,
pub reviewer: Option<Contact>,
pub signature: Option<SignaturePresence>,
}Expand description
A declarations.evidence[] entry.
Fields§
§bom_ref: Option<String>§property_name: Option<String>CycloneDX Property Taxonomy reference.
description: Option<String>§data: Vec<EvidenceDataItem>§created: Option<DateTime<Utc>>When the evidence was created.
expires: Option<DateTime<Utc>>When the evidence stops being valid.
reviewer: Option<Contact>§signature: Option<SignaturePresence>JSF signature presence (structural only, never verified).
Implementations§
Source§impl DeclaredEvidence
impl DeclaredEvidence
Sourcepub fn is_fresh(&self, as_of: DateTime<Utc>) -> bool
pub fn is_fresh(&self, as_of: DateTime<Utc>) -> bool
Whether the evidence may count toward satisfying a requirement at the
evaluation instant as_of (the compliance engine’s injectable clock,
never an inline wall-clock read).
Fail closed: evidence with expires <= as_of (expired) or
created > as_of (anachronistic — created in the future relative to
the evaluation instant) never counts. Missing timestamps impose no
constraint.
Trait Implementations§
Source§impl Clone for DeclaredEvidence
impl Clone for DeclaredEvidence
Source§fn clone(&self) -> DeclaredEvidence
fn clone(&self) -> DeclaredEvidence
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 DeclaredEvidence
impl Debug for DeclaredEvidence
Source§impl Default for DeclaredEvidence
impl Default for DeclaredEvidence
Source§fn default() -> DeclaredEvidence
fn default() -> DeclaredEvidence
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeclaredEvidence
impl<'de> Deserialize<'de> for DeclaredEvidence
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 DeclaredEvidence
impl PartialEq for DeclaredEvidence
Source§impl Serialize for DeclaredEvidence
impl Serialize for DeclaredEvidence
impl StructuralPartialEq for DeclaredEvidence
Auto Trait Implementations§
impl Freeze for DeclaredEvidence
impl RefUnwindSafe for DeclaredEvidence
impl Send for DeclaredEvidence
impl Sync for DeclaredEvidence
impl Unpin for DeclaredEvidence
impl UnsafeUnpin for DeclaredEvidence
impl UnwindSafe for DeclaredEvidence
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