@ -3,6 +3,8 @@ use std::collections::BTreeSet;
#[ cfg(feature = " serde " ) ]
#[ cfg(feature = " serde " ) ]
use serde ::{ Deserialize , Serialize } ;
use serde ::{ Deserialize , Serialize } ;
#[ cfg(feature = " serde " ) ]
use serde_with ::{ serde_as , skip_serializing_none , Bytes } ;
#[ cfg(feature = " serde " ) ]
#[ cfg(feature = " serde " ) ]
pub ( crate ) mod algorithm {
pub ( crate ) mod algorithm {
@ -48,8 +50,14 @@ pub struct Parameters {
}
}
/// > This dictionary identifies a specific public key credential.
/// > This dictionary identifies a specific public key credential.
#[ cfg_attr(feature = " serde " , derive(Serialize, Deserialize)) ]
#[ cfg_eval ]
#[ derive(Debug) ]
#[ derive(Debug, Clone) ]
#[ cfg_attr(
feature = "serde" ,
serde_as ,
skip_serializing_none ,
derive ( Serialize , Deserialize )
) ]
pub struct Descriptor {
pub struct Descriptor {
/// > This member contains the type of the public key credential
/// > This member contains the type of the public key credential
/// > the caller is referring to.
/// > the caller is referring to.
@ -58,6 +66,8 @@ pub struct Descriptor {
/// > A probabilistically-unique byte sequence identifying a
/// > A probabilistically-unique byte sequence identifying a
/// > public key credential source and its authentication
/// > public key credential source and its authentication
/// > assertions.
/// > assertions.
// Bounds: [16, 1023] bytes
#[ cfg_attr(feature = " serde " , serde_as(as = " Bytes " )) ]
pub id : Vec < u8 > ,
pub id : Vec < u8 > ,
/// > This... member contains a hint as to how the client might
/// > This... member contains a hint as to how the client might
/// > communicate with the managing authenticator of the public
/// > communicate with the managing authenticator of the public