passkey_types/ctap2/commands.rs
1/// Authenticator commands enumerated by the CTAP 2 specification.
2#[repr(u8)]
3pub enum Ctap2Command {
4 /// CTAP_CMD_MAKE_CREDENTIAL
5 MakeCredential = 0x01,
6 /// CTAP_CMD_GET_ASSERTION
7 GetAssertion = 0x02,
8 /// CTAP_CMD_GET_INFO
9 GetInfo = 0x04,
10}
11
12impl From<Ctap2Command> for u8 {
13 #[expect(clippy::as_conversions)]
14 fn from(value: Ctap2Command) -> Self {
15 value as u8
16 }
17}