pub enum ValidationError {
Show 13 variants
RequestIdMismatch,
VersionMismatch,
ProofGenerationFailed(String),
MissingCredential(String),
UnexpectedCredential(String),
DuplicateCredential(String),
ConstraintNotSatisfied,
ConstraintTooDeep,
ConstraintTooLarge,
ExpiresAtMinMismatch(String, u64, u64),
SessionIdMismatch,
MissingSessionNullifier(String),
MissingNullifier(String),
}Expand description
Validation errors when checking a response against a request
Variants§
RequestIdMismatch
The response id does not match the request id
VersionMismatch
The response version does not match the request version
ProofGenerationFailed(String)
The proof generation failed (response contains an error)
MissingCredential(String)
A required credential was not provided
UnexpectedCredential(String)
A credential was returned that was not requested.
DuplicateCredential(String)
A credential identifier was returned more than once.
ConstraintNotSatisfied
The provided credentials do not satisfy the request constraints
ConstraintTooDeep
The constraints expression exceeds the supported nesting depth
ConstraintTooLarge
The constraints expression exceeds the maximum allowed size/complexity
ExpiresAtMinMismatch(String, u64, u64)
The expires_at_min value in the response does not match the expected value from the request
SessionIdMismatch
Session ID doesn’t match between request and response
MissingSessionNullifier(String)
Session nullifier missing for credential in session proof
MissingNullifier(String)
Nullifier missing for credential in uniqueness proof
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
impl Eq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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
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
key and return true if they are equal.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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more