passkey-types 0.6.0

Rust type definitions for the webauthn and CTAP specifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Authenticator commands enumerated by the CTAP 2 specification.
#[repr(u8)]
pub enum Ctap2Command {
    /// CTAP_CMD_MAKE_CREDENTIAL
    MakeCredential = 0x01,
    /// CTAP_CMD_GET_ASSERTION
    GetAssertion = 0x02,
    /// CTAP_CMD_GET_INFO
    GetInfo = 0x04,
}

impl From<Ctap2Command> for u8 {
    #[expect(clippy::as_conversions)]
    fn from(value: Ctap2Command) -> Self {
        value as u8
    }
}