Enum identity_iota::client::ValidationError
source · [−]#[non_exhaustive]
pub enum ValidationError {
ExpirationDate,
IssuanceDate,
Signature {
source: Box<dyn Error + Sync + Send + 'static, Global>,
signer_ctx: SignerContext,
},
SignerUrl {
source: Box<dyn Error + Sync + Send + 'static, Global>,
signer_ctx: SignerContext,
},
DocumentMismatch(SignerContext),
CredentialStructure(Error),
PresentationStructure(Error),
SubjectHolderRelationship,
MissingPresentationHolder,
InvalidStatus(Error),
InvalidService(Error),
Revoked,
}
Expand description
An error associated with validating credentials and presentations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
ExpirationDate
Indicates that the expiration date of the credential is not considered valid.
IssuanceDate
Indicates that the issuance date of the credential is not considered valid.
Signature
Fields
This variant is marked as non-exhaustive
signer_ctx: SignerContext
Indicates that the credential’s (resp. presentation’s) signature could not be verified using the issuer’s (resp. holder’s) DID Document.
SignerUrl
Fields
This variant is marked as non-exhaustive
signer_ctx: SignerContext
Indicates that the credential’s (resp. presentation’s) issuer’s (resp. holder’s) URL could not be parsed as a valid DID.
DocumentMismatch(SignerContext)
Indicates an attempt to verify a signature of a credential (resp. presentation) using a DID Document not matching the issuer’s (resp. holder’s) id.
CredentialStructure(Error)
Indicates that the structure of the Credential is not semantically correct.
PresentationStructure(Error)
Indicates that the structure of the Presentation is not semantically correct.
SubjectHolderRelationship
Indicates that the relationship between the presentation holder and one of the credential subjects is not valid.
MissingPresentationHolder
Indicates that the presentation does not have a holder.
InvalidStatus(Error)
Indicates that the credential’s status is invalid.
InvalidService(Error)
Indicates that the the credential’s service is invalid.
Revoked
Indicates that the credential has been revoked.
Trait Implementations
sourceimpl Debug for ValidationError
impl Debug for ValidationError
sourceimpl Display for ValidationError
impl Display for ValidationError
sourceimpl Error for ValidationError
impl Error for ValidationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<'_derivative_strum> From<&'_derivative_strum ValidationError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ValidationError> for &'static str
sourcefn from(x: &'_derivative_strum ValidationError) -> &'static str
fn from(x: &'_derivative_strum ValidationError) -> &'static str
Converts to this type from the input type.
sourceimpl From<ValidationError> for &'static str
impl From<ValidationError> for &'static str
sourcefn from(x: ValidationError) -> &'static str
fn from(x: ValidationError) -> &'static str
Converts to this type from the input type.
sourceimpl From<ValidationError> for Error
impl From<ValidationError> for Error
sourcefn from(source: ValidationError) -> Error
fn from(source: ValidationError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more