#[non_exhaustive]pub enum OAuthConfigError {
EmptyClientId,
EmptyClientSecret,
PathTraversal,
ZeroRateLimit,
EmptyScopes,
ZeroCapacity,
}Expand description
Errors that can occur when building an OAuthConfig via the builder.
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.
EmptyClientId
client_id must not be empty.
EmptyClientSecret
client_secret must not be empty.
PathTraversal
passkey_store_path must not contain .. components.
ZeroRateLimit
Rate limit values must be non-zero.
EmptyScopes
At least one scope is required.
ZeroCapacity
A capacity limit was set to zero. Use None on max_registered_clients
for “unlimited”; all other capacity fields must be at least 1.
Trait Implementations§
Source§impl Debug for OAuthConfigError
impl Debug for OAuthConfigError
Source§impl Display for OAuthConfigError
impl Display for OAuthConfigError
Source§impl Error for OAuthConfigError
impl Error for OAuthConfigError
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()
Auto Trait Implementations§
impl Freeze for OAuthConfigError
impl RefUnwindSafe for OAuthConfigError
impl Send for OAuthConfigError
impl Sync for OAuthConfigError
impl Unpin for OAuthConfigError
impl UnsafeUnpin for OAuthConfigError
impl UnwindSafe for OAuthConfigError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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