pub enum TokenRevocationResult {
Active,
Revoked,
Inactive,
Unknown,
}Expand description
Token revocation result vocabulary.
Inactive is accepted as an extension state observed in some pai-axiom
fixtures (inactive-token-axiom-execution-trust.json); it is treated as
equivalent to Revoked for admission gating.
Variants§
Active
Token active.
Revoked
Token revoked.
Inactive
Token inactive (fixture extension).
Unknown
Token state unknown.
Implementations§
Source§impl TokenRevocationResult
impl TokenRevocationResult
Sourcepub const fn must_reject(self) -> bool
pub const fn must_reject(self) -> bool
Whether this revocation state must reject admission.
Trait Implementations§
Source§impl Clone for TokenRevocationResult
impl Clone for TokenRevocationResult
Source§fn clone(&self) -> TokenRevocationResult
fn clone(&self) -> TokenRevocationResult
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 moreSource§impl Debug for TokenRevocationResult
impl Debug for TokenRevocationResult
Source§impl<'de> Deserialize<'de> for TokenRevocationResult
impl<'de> Deserialize<'de> for TokenRevocationResult
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
Source§impl Hash for TokenRevocationResult
impl Hash for TokenRevocationResult
Source§impl PartialEq for TokenRevocationResult
impl PartialEq for TokenRevocationResult
Source§fn eq(&self, other: &TokenRevocationResult) -> bool
fn eq(&self, other: &TokenRevocationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokenRevocationResult
impl Serialize for TokenRevocationResult
impl Copy for TokenRevocationResult
impl Eq for TokenRevocationResult
impl StructuralPartialEq for TokenRevocationResult
Auto Trait Implementations§
impl Freeze for TokenRevocationResult
impl RefUnwindSafe for TokenRevocationResult
impl Send for TokenRevocationResult
impl Sync for TokenRevocationResult
impl Unpin for TokenRevocationResult
impl UnsafeUnpin for TokenRevocationResult
impl UnwindSafe for TokenRevocationResult
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