From 5ea0cfeb9ea12f86bd99f7d90288fdde3585487e Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sat, 10 Jun 2023 22:57:38 -0400 Subject: [PATCH] ctap2-proto: Derive common traits for extensions::cred_protect::Policy Derive Clone, Copy, and serde traits for usage in CTAP messages --- crates/ctap2-proto/src/extensions/cred_protect.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ctap2-proto/src/extensions/cred_protect.rs b/crates/ctap2-proto/src/extensions/cred_protect.rs index 639945e..7f7731f 100644 --- a/crates/ctap2-proto/src/extensions/cred_protect.rs +++ b/crates/ctap2-proto/src/extensions/cred_protect.rs @@ -1,3 +1,6 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Copy, Serialize, Deserialize)] pub enum Policy { UserVerificationOptional = 0x01, UserVerificationOptionalWithCredentialIdList = 0x02,