Make enums Clone and Copy
This commit is contained in:
parent
6d52835efa
commit
f393d54092
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue