Make enums Clone and Copy

This commit is contained in:
Heiko Schaefer 2022-06-11 21:47:47 +02:00
parent 6d52835efa
commit f393d54092
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -316,7 +316,7 @@ impl Display for UIF {
/// ///
/// Touch policies were introduced in YubiKey Version 4.2.0 with modes ON, OFF and FIXED. /// Touch policies were introduced in YubiKey Version 4.2.0 with modes ON, OFF and FIXED.
/// YubiKey Version >= 5.2.1 added support for modes CACHED and CACHED_FIXED. /// YubiKey Version >= 5.2.1 added support for modes CACHED and CACHED_FIXED.
#[derive(Eq, PartialEq)] #[derive(Debug, Eq, PartialEq, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
pub enum TouchPolicy { pub enum TouchPolicy {
Off, Off,
@ -507,6 +507,7 @@ impl Display for KeyInformation {
/// KeyStatus is contained in `KeyInformation`. It encodes if key material on a card was imported /// KeyStatus is contained in `KeyInformation`. It encodes if key material on a card was imported
/// or generated on the card. /// or generated on the card.
#[derive(Debug, PartialEq, Clone, Copy)]
#[non_exhaustive] #[non_exhaustive]
pub enum KeyStatus { pub enum KeyStatus {
NotPresent, NotPresent,