pub trait AuthErrorKind: Error + Diagnostic {
// Required method
fn error_code(&self) -> &'static str;
// Provided method
fn payload(&self) -> Map<String, Value> { ... }
}Expand description
Required Methods§
Sourcefn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Stable machine-readable identifier surfaced across FFI boundaries
(e.g. JS Error.code). Named error_code to avoid colliding with
miette::Diagnostic::code, inherited via the Diagnostic supertrait.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AuthErrorKind for AccessDenied
impl AuthErrorKind for AlreadyConsumed
impl AuthErrorKind for CustomError
impl AuthErrorKind for InternalError
impl AuthErrorKind for InvalidAccessKeyError
impl AuthErrorKind for InvalidClient
impl AuthErrorKind for InvalidCrn
impl AuthErrorKind for InvalidGrant
impl AuthErrorKind for InvalidToken
impl AuthErrorKind for InvalidUrl
impl AuthErrorKind for InvalidWorkspaceId
impl AuthErrorKind for MissingWorkspaceCrn
impl AuthErrorKind for NotAuthenticated
impl AuthErrorKind for RequestError
impl AuthErrorKind for ServerError
impl AuthErrorKind for StoreError
Available on non-WebAssembly only.