pub enum AttestationFormat {
None,
Packed,
FidoU2f,
Unknown,
}Expand description
WebAuthn attestation statement format identifier (WebAuthn L2 §5.1.4).
Parsed from the fmt string of the attestation object. AttestationFormat::Unknown
exists so a registration can be accepted under the documented
allow_unknown_formats escape hatch while still reporting honestly that
its statement was not verified.
Variants§
None
fmt = "none": no attestation statement.
Packed
fmt = "packed": self-attestation or basic/AttCA attestation.
FidoU2f
fmt = "fido-u2f": legacy FIDO U2F attestation.
Unknown
Any other fmt value (accepted only via the allow_unknown_formats
escape hatch; the statement is never verified).
Implementations§
Trait Implementations§
Source§impl Clone for AttestationFormat
impl Clone for AttestationFormat
Source§impl Debug for AttestationFormat
impl Debug for AttestationFormat
impl Eq for AttestationFormat
Source§impl PartialEq for AttestationFormat
impl PartialEq for AttestationFormat
Source§impl Serialize for AttestationFormat
Available on crate feature serde only.
impl Serialize for AttestationFormat
Available on crate feature
serde only.impl StructuralPartialEq for AttestationFormat
Auto Trait Implementations§
impl Freeze for AttestationFormat
impl RefUnwindSafe for AttestationFormat
impl Send for AttestationFormat
impl Sync for AttestationFormat
impl Unpin for AttestationFormat
impl UnsafeUnpin for AttestationFormat
impl UnwindSafe for AttestationFormat
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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