Skip to main content

ApiErrorProblem

Trait ApiErrorProblem 

Source
pub trait ApiErrorProblem {
    // Required method
    fn problem(&self) -> Option<ProblemDetails>;
}
Expand description

Implemented by every generated operation error type, so code generic over operations can read the RFC 9457 members of whichever documented error body a failure carried, without naming each status’s body type.

Every shape implements it: the multi-status enum answers from the variant’s body (and None for a documented bodyless status), the single-body newtype from its one body, and the uninhabited Infallible shape never answers. A body read as raw bytes (bytes::Bytes) answers None. Error::problem is the reader to call; this trait is its bound.

Required Methods§

Source

fn problem(&self) -> Option<ProblemDetails>

The problem-details members of the documented body this value carries, if its status documents one that serializes to a JSON object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ApiErrorProblem for Infallible

Implementors§

Source§

impl ApiErrorProblem for AbortAlbumUpgradeError

Source§

impl ApiErrorProblem for AdoptDropError

Source§

impl ApiErrorProblem for AlbumLifecycleOpError

Source§

impl ApiErrorProblem for AlbumUpgradePhaseError

Source§

impl ApiErrorProblem for AppendChunkError

Source§

impl ApiErrorProblem for AppendDropChunkError

Source§

impl ApiErrorProblem for AttestationKeysError

Source§

impl ApiErrorProblem for BeginOidcDeviceLoginError

Source§

impl ApiErrorProblem for BeginOidcLoginError

Source§

impl ApiErrorProblem for CancelUploadError

Source§

impl ApiErrorProblem for ChangePasswordError

Source§

impl ApiErrorProblem for CloseEnrollmentChannelError

Source§

impl ApiErrorProblem for CompleteOidcLoginError

Source§

impl ApiErrorProblem for CreateDropError

Source§

impl ApiErrorProblem for CreateUploadError

Source§

impl ApiErrorProblem for DeprecationAnnouncementsError

Source§

impl ApiErrorProblem for DiscardDropError

Source§

impl ApiErrorProblem for DrainEnrollmentChannelError

Source§

impl ApiErrorProblem for DropStatusError

Source§

impl ApiErrorProblem for FetchEscrowError

Source§

impl ApiErrorProblem for FetchSealedIdentityError

Source§

impl ApiErrorProblem for GetAssetReceiptsError

Source§

impl ApiErrorProblem for GetBlobError

Source§

impl ApiErrorProblem for GetProfileError

Source§

impl ApiErrorProblem for GetPulledAssetMetadataError

Source§

impl ApiErrorProblem for GetQuotaError

Source§

impl ApiErrorProblem for GetVersionError

Source§

impl ApiErrorProblem for IssueCapabilityError

Source§

impl ApiErrorProblem for IssueEnrollmentCodeError

Source§

impl ApiErrorProblem for IssueShareError

Source§

impl ApiErrorProblem for ListActivityError

Source§

impl ApiErrorProblem for ListAlbumKeysError

Source§

impl ApiErrorProblem for ListDevicesError

Source§

impl ApiErrorProblem for ListInboxError

Source§

impl ApiErrorProblem for ListPulledAssetsError

Source§

impl ApiErrorProblem for ListSubscriptionsError

Source§

impl ApiErrorProblem for ListUploadSessionsError

Source§

impl ApiErrorProblem for LoginUserError

Source§

impl ApiErrorProblem for LogoutError

Source§

impl ApiErrorProblem for ModerationRecordError

Source§

impl ApiErrorProblem for PollOidcDeviceLoginError

Source§

impl ApiErrorProblem for ProvisionAlbumError

Source§

impl ApiErrorProblem for ProvisionLinkError

Source§

impl ApiErrorProblem for PublishAlbumRosterError

Source§

impl ApiErrorProblem for ReannounceManifestsError

Source§

impl ApiErrorProblem for ReauthenticateError

Source§

impl ApiErrorProblem for RedeemEnrollmentCodeError

Source§

impl ApiErrorProblem for RefreshCapabilityError

Source§

impl ApiErrorProblem for RefreshTokenError

Source§

impl ApiErrorProblem for RegisterUserError

Source§

impl ApiErrorProblem for RelayEnrollmentPayloadError

Source§

impl ApiErrorProblem for RevokeAllChallengeError

Source§

impl ApiErrorProblem for RevokeAllError

Source§

impl ApiErrorProblem for RevokeCapabilityError

Source§

impl ApiErrorProblem for RevokeLinkError

Source§

impl ApiErrorProblem for RevokeSessionError

Source§

impl ApiErrorProblem for RevokeShareError

Source§

impl ApiErrorProblem for RevokedJtiError

Source§

impl ApiErrorProblem for ServerInfoError

Source§

impl ApiErrorProblem for ShareBlobError

Source§

impl ApiErrorProblem for ShareMetadataError

Source§

impl ApiErrorProblem for ShareWrappedSecretError

Source§

impl ApiErrorProblem for StoreAlbumKeysError

Source§

impl ApiErrorProblem for StoreEscrowError

Source§

impl ApiErrorProblem for StoreSealedIdentityError

Source§

impl ApiErrorProblem for SubmitFederatedReportError

Source§

impl ApiErrorProblem for SubmitPullHintError

Source§

impl ApiErrorProblem for SubscribeAlbumError

Source§

impl ApiErrorProblem for SyncFeedError

Source§

impl ApiErrorProblem for TotpDisableError

Source§

impl ApiErrorProblem for TotpEnrollError

Source§

impl ApiErrorProblem for TotpVerifyEnrollmentError

Source§

impl ApiErrorProblem for TotpVerifyLoginError

Source§

impl ApiErrorProblem for UnsubscribeAlbumError

Source§

impl ApiErrorProblem for UpdateProfileError

Source§

impl ApiErrorProblem for VerifyStorageError