#[non_exhaustive]pub enum ReceiptKeyStatus {
Current,
Historical,
}Expand description
Receipt-key status (RFC-ACDP-0010 §8 step 1, 0.5.0).
From a consumer’s vantage a retired receipt key and a key that was
never a receipt key look the same, so the status is reported rather
than inferred: a receipt verified under a Self::Historical key
MUST NOT be presented as a currently-authorized registry attestation,
and under the strict profile it cannot place a revoked-key context
before the compromise boundary (RFC-ACDP-0014 §7 step 1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Current
The receipt key is referenced by the registry DID document’s
assertionMethod.
Historical
The receipt key is present in verificationMethod only.
Trait Implementations§
Source§impl Clone for ReceiptKeyStatus
impl Clone for ReceiptKeyStatus
impl Copy for ReceiptKeyStatus
Source§impl Debug for ReceiptKeyStatus
impl Debug for ReceiptKeyStatus
Source§impl<'de> Deserialize<'de> for ReceiptKeyStatus
impl<'de> Deserialize<'de> for ReceiptKeyStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReceiptKeyStatus
Source§impl Hash for ReceiptKeyStatus
impl Hash for ReceiptKeyStatus
Source§impl PartialEq for ReceiptKeyStatus
impl PartialEq for ReceiptKeyStatus
Source§impl Serialize for ReceiptKeyStatus
impl Serialize for ReceiptKeyStatus
impl StructuralPartialEq for ReceiptKeyStatus
Auto Trait Implementations§
impl Freeze for ReceiptKeyStatus
impl RefUnwindSafe for ReceiptKeyStatus
impl Send for ReceiptKeyStatus
impl Sync for ReceiptKeyStatus
impl Unpin for ReceiptKeyStatus
impl UnsafeUnpin for ReceiptKeyStatus
impl UnwindSafe for ReceiptKeyStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.