#[non_exhaustive]pub enum StatusError {
Unsupported(String),
Unavailable(String),
Invalid(String),
}Available on crate feature
vc only.Expand description
Why a StatusCheck did not pass.
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.
Unsupported(String)
The check does not understand the status type.
The status could not be obtained: the list could not be fetched, say.
Invalid(String)
The credential’s status makes it unusable: revoked, suspended, …
Trait Implementations§
Source§impl Clone for StatusError
impl Clone for StatusError
Source§impl Debug for StatusError
impl Debug for StatusError
Source§impl Display for StatusError
impl Display for StatusError
impl Eq for StatusError
Source§impl Error for StatusError
impl Error for StatusError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<StatusError> for ValidationError
impl From<StatusError> for ValidationError
Source§fn from(source: StatusError) -> Self
fn from(source: StatusError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StatusError
impl PartialEq for StatusError
impl StructuralPartialEq for StatusError
Auto Trait Implementations§
impl Freeze for StatusError
impl RefUnwindSafe for StatusError
impl Send for StatusError
impl Sync for StatusError
impl Unpin for StatusError
impl UnsafeUnpin for StatusError
impl UnwindSafe for StatusError
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.