#[non_exhaustive]pub enum RegistrationErrorCode {
InvalidRedirectUri,
InvalidClientMetadata,
InvalidSoftwareStatement,
}Expand description
The RFC 7591 section 3.2.2 error codes.
A SEPARATE registry from RFC 6749 section 5.2, and modelled separately for that reason: the two
share no value, they are returned by different endpoints, and collapsing them into
crate::error::ErrorCode would let a token-endpoint code be emitted here (or the reverse)
with nothing to catch it.
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.
InvalidRedirectUri
One or more redirect_uris is invalid: not an absolute URI, or carrying a fragment, or
absent for a grant that needs one.
InvalidClientMetadata
Some other submitted metadata value is invalid, or names something this server will not register.
InvalidSoftwareStatement
The software statement presented is invalid. This server evaluates none, so any is: see the module docs.
Implementations§
Trait Implementations§
Source§impl Clone for RegistrationErrorCode
impl Clone for RegistrationErrorCode
Source§fn clone(&self) -> RegistrationErrorCode
fn clone(&self) -> RegistrationErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegistrationErrorCode
Source§impl Debug for RegistrationErrorCode
impl Debug for RegistrationErrorCode
Source§impl<'de> Deserialize<'de> for RegistrationErrorCode
impl<'de> Deserialize<'de> for RegistrationErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RegistrationErrorCode
impl Display for RegistrationErrorCode
impl Eq for RegistrationErrorCode
Source§impl Hash for RegistrationErrorCode
impl Hash for RegistrationErrorCode
Source§impl PartialEq for RegistrationErrorCode
impl PartialEq for RegistrationErrorCode
Source§impl Serialize for RegistrationErrorCode
impl Serialize for RegistrationErrorCode
impl StructuralPartialEq for RegistrationErrorCode
Auto Trait Implementations§
impl Freeze for RegistrationErrorCode
impl RefUnwindSafe for RegistrationErrorCode
impl Send for RegistrationErrorCode
impl Sync for RegistrationErrorCode
impl Unpin for RegistrationErrorCode
impl UnsafeUnpin for RegistrationErrorCode
impl UnwindSafe for RegistrationErrorCode
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