Enum identity_iota::verification::Error
source · #[non_exhaustive]pub enum Error {
InvalidMethod(&'static str),
DIDUrlConstructionError(Error),
MissingIdFragment,
UnknownMethodScope,
InvalidKeyDataBase58,
InvalidKeyDataMultibase,
InvalidMethodDataTransformation(&'static str),
PrivateKeyMaterialExposed,
NotPublicKeyJwk,
}
Expand description
This type represents all possible errors that can occur in the crate.
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.
InvalidMethod(&'static str)
Caused by invalid or missing properties when constructing a
VerificationMethod
.
DIDUrlConstructionError(Error)
Caused when construction of a DIDUrl
fails.
MissingIdFragment
Caused when the fragment of a VerificationMethod
is missing.
UnknownMethodScope
Caused when string does not match any known MethodScope
.
InvalidKeyDataBase58
Caused by key material in a MethodData
that is expected to be base58 encoded.
InvalidKeyDataMultibase
Caused by key material in a MethodData
that is expected to be multibase encoded.
InvalidMethodDataTransformation(&'static str)
Caused by attempting to decode MethodData
that is not in the expected encoding.
PrivateKeyMaterialExposed
Caused by building a VerificationMethod
from a key that includes private key
material.
NotPublicKeyJwk
Caused by key material that is not a JSON Web Key.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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