ctap2-proto: Put extensions::cred_protect::Policy serde derivation behind "serde" feature flag

main
Nick Zana 1 year ago
parent feabea834a
commit 6b84fd398e

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

Loading…
Cancel
Save