Struct aws_sdk_chime::error::RestorePhoneNumberError [−][src]
#[non_exhaustive]pub struct RestorePhoneNumberError {
pub kind: RestorePhoneNumberErrorKind,
// some fields omitted
}
Expand description
Error type for the RestorePhoneNumber
operation.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: RestorePhoneNumberErrorKind
Kind of error that occurred.
Implementations
Creates a new RestorePhoneNumberError
.
Creates the RestorePhoneNumberError::Unhandled
variant from any error type.
Creates the RestorePhoneNumberError::Unhandled
variant from a aws_smithy_types::Error
.
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Returns the request ID if it’s available.
Returns true
if the error kind is RestorePhoneNumberErrorKind::BadRequestException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::ForbiddenException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::NotFoundException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::ResourceLimitExceededException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::ServiceFailureException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::ServiceUnavailableException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::ThrottledClientException
.
Returns true
if the error kind is RestorePhoneNumberErrorKind::UnauthorizedClientException
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RestorePhoneNumberError
impl Send for RestorePhoneNumberError
impl Sync for RestorePhoneNumberError
impl Unpin for RestorePhoneNumberError
impl !UnwindSafe for RestorePhoneNumberError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more