Adding some common traits for certain enum types to support maps. (#372)
This commit is contained in:
+2
-2
@@ -88,7 +88,7 @@ const KEYDATA_RSA_EXP: u64 = 65537;
|
|||||||
|
|
||||||
/// Slot identifiers.
|
/// Slot identifiers.
|
||||||
/// <https://developers.yubico.com/PIV/Introduction/Certificate_slots.html>
|
/// <https://developers.yubico.com/PIV/Introduction/Certificate_slots.html>
|
||||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, Ord, PartialOrd)]
|
||||||
pub enum SlotId {
|
pub enum SlotId {
|
||||||
/// This certificate and its associated private key is used to authenticate the card
|
/// This certificate and its associated private key is used to authenticate the card
|
||||||
/// and the cardholder. This slot is used for things like system login. The end user
|
/// and the cardholder. This slot is used for things like system login. The end user
|
||||||
@@ -196,7 +196,7 @@ impl SlotId {
|
|||||||
|
|
||||||
/// Retired slot IDs.
|
/// Retired slot IDs.
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||||
pub enum RetiredSlotId {
|
pub enum RetiredSlotId {
|
||||||
R1,
|
R1,
|
||||||
R2,
|
R2,
|
||||||
|
|||||||
Reference in New Issue
Block a user