#[non_exhaustive]pub enum IssuerIdError {
Empty,
TooLong {
max: usize,
actual: usize,
},
InvalidUri,
UnsupportedScheme,
MissingAuthority,
InvalidPort,
UserInfoNotAllowed,
QueryNotAllowed,
FragmentNotAllowed,
}Expand description
Validation failure for an IssuerId.
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.
Empty
The identifier contained no bytes.
TooLong
The identifier exceeded IssuerId::MAX_LEN.
InvalidUri
The text was not an RFC 3986 URI.
UnsupportedScheme
The URI did not use the HTTPS scheme.
MissingAuthority
The URI did not contain a non-empty authority host.
InvalidPort
A port was empty or outside the u16 range used by HTTPS transports.
UserInfoNotAllowed
URI user information was present.
QueryNotAllowed
A query component was present, including an empty query.
FragmentNotAllowed
A fragment component was present, including an empty fragment.
Trait Implementations§
Source§impl Clone for IssuerIdError
impl Clone for IssuerIdError
Source§impl Debug for IssuerIdError
impl Debug for IssuerIdError
Source§impl Display for IssuerIdError
impl Display for IssuerIdError
impl Eq for IssuerIdError
Source§impl Error for IssuerIdError
impl Error for IssuerIdError
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 IssuerIdError
impl PartialEq for IssuerIdError
impl StructuralPartialEq for IssuerIdError
Auto Trait Implementations§
impl Forget for IssuerIdError
impl Freeze for IssuerIdError
impl Move for IssuerIdError
impl RefUnwindSafe for IssuerIdError
impl Send for IssuerIdError
impl Sync for IssuerIdError
impl Unpin for IssuerIdError
impl UnsafeUnpin for IssuerIdError
impl UnwindSafe for IssuerIdError
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