ctap2-proto: Derive common traits for extensions::cred_protect::Policy

Derive Clone, Copy, and serde traits for usage in CTAP messages
main
Nick Zana 1 year ago
parent 67a2986167
commit 5ea0cfeb9e

@ -1,3 +1,6 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum Policy { pub enum Policy {
UserVerificationOptional = 0x01, UserVerificationOptional = 0x01,
UserVerificationOptionalWithCredentialIdList = 0x02, UserVerificationOptionalWithCredentialIdList = 0x02,

Loading…
Cancel
Save