#[non_exhaustive]pub enum AuthTokenError {
Show 15 variants
HeaderValue {
source: InvalidHeaderValue,
},
IdentityMethod {
auth_type: String,
},
IdentityMethodSync {
auth_type: String,
},
MissingAuthData,
MissingAuthUrl,
AuthRequestIdentity {
source: IdentityBuilderError,
},
AuthRequestAuth {
source: AuthBuilderError,
},
AuthRequest {
source: RequestBuilderError,
},
InfoRequest {
source: RequestBuilderError,
},
Scope {
source: AuthTokenScopeError,
},
ApplicationCredential {
source: ApplicationCredentialError,
},
Password {
source: PasswordError,
},
Token {
source: TokenError,
},
Totp {
source: TotpError,
},
WebSso {
source: WebSsoError,
},
}Expand description
AuthToken (X-Auth-Token) 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.
HeaderValue
Header error
Fields
§
source: InvalidHeaderValueIdentityMethod
Unsupported identity method
IdentityMethodSync
Unsupported identity method in sync mode
MissingAuthData
Auth data is missing
MissingAuthUrl
auth_url is missing
AuthRequestIdentity
Identity request part build error
Fields
§
source: IdentityBuilderErrorThe error source
AuthRequestAuth
Auth request part build error
Fields
§
source: AuthBuilderErrorThe error source
AuthRequest
Auth request build error
Fields
§
source: RequestBuilderErrorThe error source
InfoRequest
Token Info request build error
Fields
§
source: RequestBuilderErrorThe error source
Scope
Token Scope error
Fields
§
source: AuthTokenScopeErrorThe error source
ApplicationCredential
ApplicationCredentials Identity error
Fields
§
source: ApplicationCredentialErrorThe error source
Password
Password Identity error
Fields
§
source: PasswordErrorThe error source
Token
Token Identity error
Fields
§
source: TokenErrorThe error source
Totp
TOTP Idetinty error
WebSso
WebSSO Identity error
Fields
§
source: WebSsoErrorThe error source
Trait Implementations§
Source§impl Debug for AuthTokenError
impl Debug for AuthTokenError
Source§impl Display for AuthTokenError
impl Display for AuthTokenError
Source§impl Error for AuthTokenError
impl Error for AuthTokenError
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<ApplicationCredentialError> for AuthTokenError
impl From<ApplicationCredentialError> for AuthTokenError
Source§fn from(source: ApplicationCredentialError) -> Self
fn from(source: ApplicationCredentialError) -> Self
Converts to this type from the input type.
Source§impl From<AuthTokenError> for AuthError
impl From<AuthTokenError> for AuthError
Source§fn from(source: AuthTokenError) -> Self
fn from(source: AuthTokenError) -> Self
Converts to this type from the input type.
Source§impl From<AuthTokenError> for OpenStackError
impl From<AuthTokenError> for OpenStackError
Source§fn from(source: AuthTokenError) -> Self
fn from(source: AuthTokenError) -> 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<InvalidHeaderValue> for AuthTokenError
impl From<InvalidHeaderValue> for AuthTokenError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<PasswordError> for AuthTokenError
impl From<PasswordError> for AuthTokenError
Source§fn from(source: PasswordError) -> Self
fn from(source: PasswordError) -> Self
Converts to this type from the input type.
Source§impl From<RequestBuilderError> for AuthTokenError
impl From<RequestBuilderError> for AuthTokenError
Source§fn from(source: RequestBuilderError) -> Self
fn from(source: RequestBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for AuthTokenError
impl From<TokenError> for AuthTokenError
Source§fn from(source: TokenError) -> Self
fn from(source: TokenError) -> Self
Converts to this type from the input type.
Source§impl From<TotpError> for AuthTokenError
impl From<TotpError> for AuthTokenError
Source§impl From<WebSsoError> for AuthTokenError
impl From<WebSsoError> for AuthTokenError
Source§fn from(source: WebSsoError) -> Self
fn from(source: WebSsoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthTokenError
impl !RefUnwindSafe for AuthTokenError
impl Send for AuthTokenError
impl Sync for AuthTokenError
impl Unpin for AuthTokenError
impl !UnwindSafe for AuthTokenError
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.