pub enum KeystoneApiError {
Show 22 variants
AuthenticationRescopeForbidden,
AuthMethodNotSupported,
BadRequest(String),
Base64Decode(DecodeError),
Conflict(String),
DomainIdOrName,
Forbidden {
source: Box<dyn Error + Send + Sync>,
},
InvalidHeader,
InvalidToken,
JsonExtractorRejection(JsonRejection),
InternalError(String),
NotFound {
resource: String,
identifier: String,
},
Other(Report),
Policy {
source: PolicyError,
},
ProjectIdOrName,
ProjectDomain,
SelectedAuthenticationForbidden,
Serde {
source: Error,
},
SubjectTokenMissing,
UnauthorizedNoContext,
Unauthorized {
context: Option<String>,
source: Box<dyn Error + Send + Sync>,
},
Validator {
source: ValidationErrors,
},
}Expand description
Keystone API operation errors.
Variants§
AuthenticationRescopeForbidden
Selected authentication is forbidden.
AuthMethodNotSupported
BadRequest(String)
Base64Decode(DecodeError)
Base64 decoding error.
Conflict(String)
DomainIdOrName
Forbidden
InvalidHeader
InvalidToken
JsonExtractorRejection(JsonRejection)
InternalError(String)
NotFound
Other(Report)
Others.
Policy
Fields
§
source: PolicyErrorProjectIdOrName
ProjectDomain
SelectedAuthenticationForbidden
Selected authentication is forbidden.
Serde
(de)serialization error.
SubjectTokenMissing
Fields
The source of the error.
Validator
Request validation error.
Fields
§
source: ValidationErrorsThe source of the error.
Implementations§
Trait Implementations§
Source§impl Debug for KeystoneApiError
impl Debug for KeystoneApiError
Source§impl Display for KeystoneApiError
impl Display for KeystoneApiError
Source§impl Error for KeystoneApiError
impl Error for KeystoneApiError
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<AssignmentProviderError> for KeystoneApiError
impl From<AssignmentProviderError> for KeystoneApiError
Source§fn from(source: AssignmentProviderError) -> Self
fn from(source: AssignmentProviderError) -> Self
Converts to this type from the input type.
Source§impl From<AuthenticationError> for KeystoneApiError
impl From<AuthenticationError> for KeystoneApiError
Source§fn from(value: AuthenticationError) -> Self
fn from(value: AuthenticationError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for KeystoneApiError
impl From<BuilderError> for KeystoneApiError
Source§fn from(value: BuilderError) -> Self
fn from(value: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<BuilderError> for KeystoneApiError
impl From<BuilderError> for KeystoneApiError
Source§fn from(value: BuilderError) -> Self
fn from(value: BuilderError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogProviderError> for KeystoneApiError
impl From<CatalogProviderError> for KeystoneApiError
Source§fn from(value: CatalogProviderError) -> Self
fn from(value: CatalogProviderError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for KeystoneApiError
impl From<DecodeError> for KeystoneApiError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for KeystoneApiError
impl From<Error> for KeystoneApiError
Source§impl From<Error> for KeystoneApiError
impl From<Error> for KeystoneApiError
Source§impl From<Error> for KeystoneApiError
impl From<Error> for KeystoneApiError
Source§impl From<FederationProviderError> for KeystoneApiError
impl From<FederationProviderError> for KeystoneApiError
Source§fn from(source: FederationProviderError) -> Self
fn from(source: FederationProviderError) -> Self
Converts to this type from the input type.
Source§impl From<IdentityProviderError> for KeystoneApiError
impl From<IdentityProviderError> for KeystoneApiError
Source§fn from(value: IdentityProviderError) -> Self
fn from(value: IdentityProviderError) -> Self
Converts to this type from the input type.
Source§impl From<JsonRejection> for KeystoneApiError
impl From<JsonRejection> for KeystoneApiError
Source§fn from(source: JsonRejection) -> Self
fn from(source: JsonRejection) -> Self
Converts to this type from the input type.
Source§impl From<K8sAuthProviderError> for KeystoneApiError
Convert K8sAuthProviderError error into the HTTP with
the expected
impl From<K8sAuthProviderError> for KeystoneApiError
Convert K8sAuthProviderError error into the HTTP with
the expected
Source§fn from(source: K8sAuthProviderError) -> Self
fn from(source: K8sAuthProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for KeystoneApiError
impl From<ParseError> for KeystoneApiError
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for KeystoneApiError
impl From<PolicyError> for KeystoneApiError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<Report> for KeystoneApiError
impl From<Report> for KeystoneApiError
Source§impl From<ResourceProviderError> for KeystoneApiError
impl From<ResourceProviderError> for KeystoneApiError
Source§fn from(value: ResourceProviderError) -> Self
fn from(value: ResourceProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RevokeProviderError> for KeystoneApiError
impl From<RevokeProviderError> for KeystoneApiError
Source§fn from(value: RevokeProviderError) -> Self
fn from(value: RevokeProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RoleProviderError> for KeystoneApiError
impl From<RoleProviderError> for KeystoneApiError
Source§fn from(source: RoleProviderError) -> Self
fn from(source: RoleProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TokenProviderError> for KeystoneApiError
impl From<TokenProviderError> for KeystoneApiError
Source§fn from(value: TokenProviderError) -> Self
fn from(value: TokenProviderError) -> Self
Converts to this type from the input type.
Source§impl From<TrustProviderError> for KeystoneApiError
impl From<TrustProviderError> for KeystoneApiError
Source§fn from(source: TrustProviderError) -> Self
fn from(source: TrustProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationErrors> for KeystoneApiError
impl From<ValidationErrors> for KeystoneApiError
Source§fn from(source: ValidationErrors) -> Self
fn from(source: ValidationErrors) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for KeystoneApiError
impl IntoResponse for KeystoneApiError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for KeystoneApiError
impl !RefUnwindSafe for KeystoneApiError
impl Send for KeystoneApiError
impl Sync for KeystoneApiError
impl Unpin for KeystoneApiError
impl UnsafeUnpin for KeystoneApiError
impl !UnwindSafe for KeystoneApiError
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.
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP