#[non_exhaustive]pub enum AidParseError {
MissingScheme,
UnsupportedMethod(String),
WrongLength(usize),
InvalidChars,
}Expand description
Reasons an AID string can be rejected.
Marked #[non_exhaustive]: new parse-failure modes added by future
AID grammar revisions land as new variants without a major bump.
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.
MissingScheme
Missing the aid: URI scheme prefix.
UnsupportedMethod(String)
Method other than pubkey (e.g. did, x509) — not supported in v0.1.
WrongLength(usize)
Identifier length is not 43 (raw Ed25519 base64url-unpadded).
InvalidChars
Identifier contains characters outside the base64url alphabet.
Trait Implementations§
Source§impl Debug for AidParseError
impl Debug for AidParseError
Source§impl Display for AidParseError
impl Display for AidParseError
impl Eq for AidParseError
Source§impl Error for AidParseError
impl Error for AidParseError
1.30.0 · 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 PartialEq for AidParseError
impl PartialEq for AidParseError
impl StructuralPartialEq for AidParseError
Auto Trait Implementations§
impl Freeze for AidParseError
impl RefUnwindSafe for AidParseError
impl Send for AidParseError
impl Sync for AidParseError
impl Unpin for AidParseError
impl UnsafeUnpin for AidParseError
impl UnwindSafe for AidParseError
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.