Struct aws_sdk_apigateway::error::GetUsageError [−][src]
#[non_exhaustive]pub struct GetUsageError {
pub kind: GetUsageErrorKind,
// some fields omitted
}
Expand description
Error type for the GetUsage
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: GetUsageErrorKind
Kind of error that occurred.
Implementations
Creates a new GetUsageError
.
Creates the GetUsageError::Unhandled
variant from any error type.
Creates the GetUsageError::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 GetUsageErrorKind::BadRequestException
.
Returns true
if the error kind is GetUsageErrorKind::NotFoundException
.
Returns true
if the error kind is GetUsageErrorKind::TooManyRequestsException
.
Returns true
if the error kind is GetUsageErrorKind::UnauthorizedException
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GetUsageError
impl Send for GetUsageError
impl Sync for GetUsageError
impl Unpin for GetUsageError
impl !UnwindSafe for GetUsageError
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