pub enum StatusPurpose {
Revocation,
}Expand description
credentialStatus.statusPurpose, a closed set of exactly one member
(§6.3.3.5).
"suspension" is deliberately absent: suspension is reversible and
§6.3.2 forbids re-activation, so admitting it would put a lifecycle in
the transport that the mandate itself does not have.
Modelled as an enum for a security reason §6.3.3.5 states outright: a verifier MUST NOT read a purpose it does not recognize as “no status claim was made”, because a producer could then disable the check on any verifier by writing a word that verifier has never seen. An enum makes that opt-out unconstructible — the envelope fails to parse at all.
Variants§
Revocation
The mandate’s authority was withdrawn by the human who granted it.
Trait Implementations§
Source§impl Clone for StatusPurpose
impl Clone for StatusPurpose
Source§fn clone(&self) -> StatusPurpose
fn clone(&self) -> StatusPurpose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatusPurpose
Source§impl Debug for StatusPurpose
impl Debug for StatusPurpose
Source§impl<'de> Deserialize<'de> for StatusPurpose
impl<'de> Deserialize<'de> for StatusPurpose
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 StatusPurpose
Source§impl PartialEq for StatusPurpose
impl PartialEq for StatusPurpose
Source§impl Serialize for StatusPurpose
impl Serialize for StatusPurpose
impl StructuralPartialEq for StatusPurpose
Auto Trait Implementations§
impl Freeze for StatusPurpose
impl RefUnwindSafe for StatusPurpose
impl Send for StatusPurpose
impl Sync for StatusPurpose
impl Unpin for StatusPurpose
impl UnsafeUnpin for StatusPurpose
impl UnwindSafe for StatusPurpose
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