pub struct ValidatedAbsence { /* private fields */ }Expand description
Typed authenticated absence from one root.
Implementations§
Source§impl ValidatedAbsence
impl ValidatedAbsence
Sourcepub fn new(
namespace: Namespace,
query: OriginQuery,
kind: AbsenceKind,
provenance: EvidenceProvenance,
freshness: Freshness,
) -> Result<Self, ValidationError>
pub fn new( namespace: Namespace, query: OriginQuery, kind: AbsenceKind, provenance: EvidenceProvenance, freshness: Freshness, ) -> Result<Self, ValidationError>
Creates absence evidence valid for exactly one root and complete origin query.
§Errors
Returns ValidationError::InvalidEvidence for a cross-root kind or
provenance mismatch.
Sourcepub const fn query(&self) -> &OriginQuery
pub const fn query(&self) -> &OriginQuery
Complete origin query whose plan is absent.
Sourcepub const fn host(&self) -> &CanonicalHost
pub const fn host(&self) -> &CanonicalHost
Queried complete hostname.
Sourcepub const fn kind(&self) -> AbsenceKind
pub const fn kind(&self) -> AbsenceKind
Typed absence reason.
Sourcepub const fn provenance(&self) -> &EvidenceProvenance
pub const fn provenance(&self) -> &EvidenceProvenance
Authenticated evidence lineage.
Trait Implementations§
Source§impl Clone for ValidatedAbsence
impl Clone for ValidatedAbsence
Source§impl Debug for ValidatedAbsence
impl Debug for ValidatedAbsence
impl Eq for ValidatedAbsence
Source§impl PartialEq for ValidatedAbsence
impl PartialEq for ValidatedAbsence
impl StructuralPartialEq for ValidatedAbsence
Auto Trait Implementations§
impl Freeze for ValidatedAbsence
impl RefUnwindSafe for ValidatedAbsence
impl Send for ValidatedAbsence
impl Sync for ValidatedAbsence
impl Unpin for ValidatedAbsence
impl UnsafeUnpin for ValidatedAbsence
impl UnwindSafe for ValidatedAbsence
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