fido-common: Derive (Partial)Eq for public_key types

main
Nick Zana 1 year ago
parent b86d20f0dd
commit 8c8984edcb

@ -81,7 +81,7 @@ pub struct Descriptor {
/// > the RP. /// > the RP.
/// Due to deprecation, the `icon` URL is omitted. See <https://github.com/w3c/webauthn/pull/1337/>. /// Due to deprecation, the `icon` URL is omitted. See <https://github.com/w3c/webauthn/pull/1337/>.
#[cfg_eval] #[cfg_eval]
#[derive(Debug, Clone)] #[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr( #[cfg_attr(
feature = "serde", feature = "serde",
serde_as, serde_as,
@ -118,7 +118,7 @@ pub struct UserEntity {
/// > This `PublicKeyCredentialRpEntity` data structure describes a Relying /// > This `PublicKeyCredentialRpEntity` data structure describes a Relying
/// > Party with which the new public key credential will be associated. /// > Party with which the new public key credential will be associated.
#[derive(Debug, Clone)] #[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct RelyingPartyEntity { pub struct RelyingPartyEntity {
/// > A unique identifier for the Relying Party entity. /// > A unique identifier for the Relying Party entity.

Loading…
Cancel
Save