#[non_exhaustive]pub enum StatusPolicy {
Strict,
SkipUnsupported,
SkipAll,
}Available on crate feature
vc only.Expand description
What to do about a status entry: a credentialStatus entry, or the status claim of an
SD-JWT credential or of a JWT credential.
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.
Strict
Every entry must pass the validator’s StatusCheck; without one, or for a type it
does not support, validation fails.
SkipUnsupported
Entries of a type the StatusCheck does not support, or any entry when there is no
check, are ignored.
SkipAll
Every status entry is ignored: credentialStatus and the status claim.
Trait Implementations§
Source§impl Clone for StatusPolicy
impl Clone for StatusPolicy
impl Copy for StatusPolicy
Source§impl Debug for StatusPolicy
impl Debug for StatusPolicy
Source§impl Default for StatusPolicy
impl Default for StatusPolicy
impl Eq for StatusPolicy
Source§impl Hash for StatusPolicy
impl Hash for StatusPolicy
Source§impl PartialEq for StatusPolicy
impl PartialEq for StatusPolicy
impl StructuralPartialEq for StatusPolicy
Auto Trait Implementations§
impl Freeze for StatusPolicy
impl RefUnwindSafe for StatusPolicy
impl Send for StatusPolicy
impl Sync for StatusPolicy
impl Unpin for StatusPolicy
impl UnsafeUnpin for StatusPolicy
impl UnwindSafe for StatusPolicy
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,
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.