#[non_exhaustive]pub enum ApiGatewayV2ErrorCode {
AccessDeniedException,
BadRequestException,
ConflictException,
NotFoundException,
TooManyRequestsException,
UnknownOperation,
}Expand description
Well-known ApiGatewayV2 error codes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AccessDeniedException
AccessDeniedException error.
BadRequestException
BadRequestException error.
ConflictException
ConflictException error.
NotFoundException
NotFoundException error.
TooManyRequestsException
TooManyRequestsException error.
UnknownOperation
UnknownOperation error.
Implementations§
Source§impl ApiGatewayV2ErrorCode
impl ApiGatewayV2ErrorCode
Sourcepub fn error_type(&self) -> &'static str
pub fn error_type(&self) -> &'static str
Returns the short error type string for the JSON __type field.
Sourcepub fn default_status_code(&self) -> StatusCode
pub fn default_status_code(&self) -> StatusCode
Returns the default HTTP status code for this error.
Trait Implementations§
Source§impl Clone for ApiGatewayV2ErrorCode
impl Clone for ApiGatewayV2ErrorCode
Source§fn clone(&self) -> ApiGatewayV2ErrorCode
fn clone(&self) -> ApiGatewayV2ErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiGatewayV2ErrorCode
impl Debug for ApiGatewayV2ErrorCode
Source§impl Default for ApiGatewayV2ErrorCode
impl Default for ApiGatewayV2ErrorCode
Source§fn default() -> ApiGatewayV2ErrorCode
fn default() -> ApiGatewayV2ErrorCode
Returns the “default value” for a type. Read more
Source§impl Display for ApiGatewayV2ErrorCode
impl Display for ApiGatewayV2ErrorCode
Source§impl Hash for ApiGatewayV2ErrorCode
impl Hash for ApiGatewayV2ErrorCode
Source§impl PartialEq for ApiGatewayV2ErrorCode
impl PartialEq for ApiGatewayV2ErrorCode
impl Copy for ApiGatewayV2ErrorCode
impl Eq for ApiGatewayV2ErrorCode
impl StructuralPartialEq for ApiGatewayV2ErrorCode
Auto Trait Implementations§
impl Freeze for ApiGatewayV2ErrorCode
impl RefUnwindSafe for ApiGatewayV2ErrorCode
impl Send for ApiGatewayV2ErrorCode
impl Sync for ApiGatewayV2ErrorCode
impl Unpin for ApiGatewayV2ErrorCode
impl UnsafeUnpin for ApiGatewayV2ErrorCode
impl UnwindSafe for ApiGatewayV2ErrorCode
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