pub enum ProviderDescriptorError {
MissingAuthorizationEndpoint,
MissingTokenEndpoint,
NoSupportedGrants,
PkceRequiredWithoutAuthorizationCode,
InsecureEndpoint {
endpoint: &'static str,
url: String,
},
InvalidScopeDelimiter {
delimiter: char,
},
}Expand description
Errors raised while constructing or validating descriptors.
Variants§
MissingAuthorizationEndpoint
Authorization endpoint is required for Authorization Code flows.
MissingTokenEndpoint
Token endpoint is mandatory for all flows.
NoSupportedGrants
At least one grant must be supported.
PkceRequiredWithoutAuthorizationCode
PKCE requirement implies Authorization Code support.
InsecureEndpoint
Endpoints must use HTTPS.
Fields
InvalidScopeDelimiter
Reject scope delimiters that are control characters.
Trait Implementations§
Source§impl Debug for ProviderDescriptorError
impl Debug for ProviderDescriptorError
Source§impl Deserialize<'static> for ProviderDescriptorError
impl Deserialize<'static> for ProviderDescriptorError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProviderDescriptorError
impl Display for ProviderDescriptorError
Source§impl Error for ProviderDescriptorError
impl Error for ProviderDescriptorError
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 ProviderDescriptorError
impl PartialEq for ProviderDescriptorError
Source§impl Serialize for ProviderDescriptorError
impl Serialize for ProviderDescriptorError
impl Eq for ProviderDescriptorError
impl StructuralPartialEq for ProviderDescriptorError
Auto Trait Implementations§
impl Freeze for ProviderDescriptorError
impl RefUnwindSafe for ProviderDescriptorError
impl Send for ProviderDescriptorError
impl Sync for ProviderDescriptorError
impl Unpin for ProviderDescriptorError
impl UnwindSafe for ProviderDescriptorError
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.