pub struct Validation<'s, D, G> { /* private fields */ }Expand description
Complete material occurrence census in one explicitly selected revision. Absence is represented independently of an empty but present dictionary.
Implementations§
Source§impl<'s, D: Copy + Eq, G: Copy + Eq> Validation<'s, D, G>
impl<'s, D: Copy + Eq, G: Copy + Eq> Validation<'s, D, G>
Sourcepub fn parse<'v, W: Work + 'v>(
&'v self,
operation: &'v W,
) -> Result<Parsed<'v, 's, D, G>, MaterialFailure>
pub fn parse<'v, W: Work + 'v>( &'v self, operation: &'v W, ) -> Result<Parsed<'v, 's, D, G>, MaterialFailure>
Parses every value once under the actual current/original execution. Protocol OCSP failures and unknown response syntaxes remain distinct retained values and never become a fabricated basic response.
Source§impl<D: Copy + Eq, G: Copy + Eq> Validation<'_, D, G>
impl<D: Copy + Eq, G: Copy + Eq> Validation<'_, D, G>
Sourcepub fn stamp(&self) -> Stamp<D, G>
pub fn stamp(&self) -> Stamp<D, G>
Immutable source identity of all retained material occurrences.
Sourcepub fn revision(&self) -> usize
pub fn revision(&self) -> usize
Historical ordinal, never an implicit latest-revision selection.
Sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Distinguishes an absent DSS from an explicitly present empty one.
Sourcepub fn items(&self) -> &[Item<'_>]
pub fn items(&self) -> &[Item<'_>]
All original DSS and VRI material occurrences, without copying.
Sourcepub fn vri(&self) -> &[Vri]
pub fn vri(&self) -> &[Vri]
Every original VRI, independently of whether its name matches a signature.
Sourcepub fn all_vri_material_in_dss(&self) -> bool
pub fn all_vri_material_in_dss(&self) -> bool
All original VRI validation values also occur in their corresponding DSS arrays in this revision, independently of DER readability/trust.