pub enum ValidationError {
SignatureValidation(String),
JsonCanonicalization(String),
JsonSerDe(JsonSerDeError),
AuthorizationError(AuthorizationError),
Redaction(RedactionError),
}Expand description
Error type for validation failures.
Variants§
SignatureValidation(String)
The signature is invalid
JsonCanonicalization(String)
Building canonical JSON failed
JsonSerDe(JsonSerDeError)
An error in handling JSON De-/serialization.
AuthorizationError(AuthorizationError)
Checking authorization failed
Redaction(RedactionError)
Error when attempting to perform redaction operations or operations on redacted data.
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
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<AuthorizationError> for ValidationError
impl From<AuthorizationError> for ValidationError
Source§fn from(source: AuthorizationError) -> Self
fn from(source: AuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<JsonSerDeError> for ValidationError
impl From<JsonSerDeError> for ValidationError
Source§fn from(source: JsonSerDeError) -> Self
fn from(source: JsonSerDeError) -> Self
Converts to this type from the input type.
Source§impl From<RedactionError> for ValidationError
impl From<RedactionError> for ValidationError
Source§fn from(source: RedactionError) -> Self
fn from(source: RedactionError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for SigningValidationError
impl From<ValidationError> for SigningValidationError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ValidationError
impl !UnwindSafe for ValidationError
impl Freeze for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more