pub struct VerifiedAttestation(/* private fields */);Expand description
An attestation that has passed signature verification.
This type enforces at compile time that an attestation’s signatures were verified before it can be stored. It can only be constructed by:
- Verification functions (
verify_with_keys,verify_with_capability) - The
dangerous_from_uncheckedescape hatch (for self-signed attestations)
Does NOT implement Deserialize to prevent bypassing verification by
deserializing directly.
Implementations§
Source§impl VerifiedAttestation
impl VerifiedAttestation
Sourcepub fn inner(&self) -> &Attestation
pub fn inner(&self) -> &Attestation
Access the inner attestation.
Sourcepub fn into_inner(self) -> Attestation
pub fn into_inner(self) -> Attestation
Consume and return the inner attestation.
Methods from Deref<Target = Attestation>§
Sourcepub fn is_revoked(&self) -> bool
pub fn is_revoked(&self) -> bool
Returns true if this attestation has been revoked.
Sourcepub fn to_debug_string(&self) -> String
pub fn to_debug_string(&self) -> String
Formats the attestation contents for debug or inspection purposes.
Trait Implementations§
Source§impl Clone for VerifiedAttestation
impl Clone for VerifiedAttestation
Source§fn clone(&self) -> VerifiedAttestation
fn clone(&self) -> VerifiedAttestation
Returns a duplicate of the value. Read more
1.0.0 · 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 VerifiedAttestation
impl Debug for VerifiedAttestation
Source§impl Deref for VerifiedAttestation
impl Deref for VerifiedAttestation
Source§type Target = Attestation
type Target = Attestation
The resulting type after dereferencing.
Source§fn deref(&self) -> &Attestation
fn deref(&self) -> &Attestation
Dereferences the value.
Auto Trait Implementations§
impl Freeze for VerifiedAttestation
impl RefUnwindSafe for VerifiedAttestation
impl Send for VerifiedAttestation
impl Sync for VerifiedAttestation
impl Unpin for VerifiedAttestation
impl UnsafeUnpin for VerifiedAttestation
impl UnwindSafe for VerifiedAttestation
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