#[non_exhaustive]pub enum AuthTokenScopeError {
MissingAuthData,
MissingScope,
Builder {
source: BuilderError,
},
}Expand description
AuthToken (X-Auth-Token) Scope based auth errors
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.
MissingAuthData
Auth data is missing in the config
MissingScope
Scope cannot be built
Builder
Scope cannot be built
Fields
§
source: BuilderErrorTrait Implementations§
Source§impl Debug for AuthTokenScopeError
impl Debug for AuthTokenScopeError
Source§impl Display for AuthTokenScopeError
impl Display for AuthTokenScopeError
Source§impl Error for AuthTokenScopeError
impl Error for AuthTokenScopeError
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 From<AuthTokenScopeError> for AuthError
Explicitly implement From to easier propagate nested errors
impl From<AuthTokenScopeError> for AuthError
Explicitly implement From to easier propagate nested errors
Source§fn from(source: AuthTokenScopeError) -> Self
fn from(source: AuthTokenScopeError) -> Self
Converts to this type from the input type.
Source§impl From<AuthTokenScopeError> for AuthTokenError
impl From<AuthTokenScopeError> for AuthTokenError
Source§fn from(source: AuthTokenScopeError) -> Self
fn from(source: AuthTokenScopeError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for AuthTokenScopeError
impl From<BuilderError> for AuthTokenScopeError
Source§fn from(source: BuilderError) -> Self
fn from(source: BuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthTokenScopeError
impl RefUnwindSafe for AuthTokenScopeError
impl Send for AuthTokenScopeError
impl Sync for AuthTokenScopeError
impl Unpin for AuthTokenScopeError
impl UnsafeUnpin for AuthTokenScopeError
impl UnwindSafe for AuthTokenScopeError
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