pub enum DocumentError {
MissingField {
field: String,
},
InvalidField {
field: String,
reason: String,
},
ProofVerificationFailed {
reason: String,
},
ProofGenerationFailed {
reason: String,
},
ConformanceNotMet {
level: String,
reason: String,
},
Json(Error),
Did(DidError),
Crypto(CryptoError),
InvalidLifecycleTransition {
from: String,
to: String,
},
InvalidSequence {
sequence: u64,
reason: String,
},
}Expand description
Errors arising from OAS Identity Document operations.
Variants§
MissingField
The document is missing a required field.
InvalidField
A field value is invalid.
ProofVerificationFailed
Document proof verification failed.
ProofGenerationFailed
Document proof generation failed.
ConformanceNotMet
Conformance level requirements not met.
Fields
Json(Error)
JSON serialization/deserialization failed.
Did(DidError)
DID parsing failed.
Crypto(CryptoError)
Cryptographic operation failed.
InvalidLifecycleTransition
The lifecycle status transition is not allowed.
InvalidSequence
Sequence number is not valid.
Trait Implementations§
Source§impl Debug for DocumentError
impl Debug for DocumentError
Source§impl Display for DocumentError
impl Display for DocumentError
Source§impl Error for DocumentError
impl Error for DocumentError
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<CryptoError> for DocumentError
impl From<CryptoError> for DocumentError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<DidError> for DocumentError
impl From<DidError> for DocumentError
Auto Trait Implementations§
impl !RefUnwindSafe for DocumentError
impl !UnwindSafe for DocumentError
impl Freeze for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnsafeUnpin for DocumentError
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