#[non_exhaustive]pub enum RequestContext {
ApiGatewayV1(ApiGatewayProxyRequestContext),
ApiGatewayV2(ApiGatewayV2httpRequestContext),
Alb(AlbTargetGroupRequestContext),
WebSocket(ApiGatewayWebsocketProxyRequestContext),
PassThrough,
}Expand description
Event request context as an enumeration of request contexts for both ALB and API Gateway and HTTP API events
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.
ApiGatewayV1(ApiGatewayProxyRequestContext)
Available on crate feature
apigw_rest only.API Gateway proxy request context
ApiGatewayV2(ApiGatewayV2httpRequestContext)
Available on crate feature
apigw_http only.API Gateway v2 request context
Alb(AlbTargetGroupRequestContext)
Available on crate feature
alb only.ALB request context
WebSocket(ApiGatewayWebsocketProxyRequestContext)
Available on crate feature
apigw_websockets only.WebSocket request context
PassThrough
Available on crate feature
pass_through only.Custom request context
Implementations§
Source§impl RequestContext
impl RequestContext
Available on crate features apigw_rest or apigw_http or apigw_websockets only.
apigw_rest or apigw_http or apigw_websockets only.Returns the Api Gateway Authorizer information for a request.
Trait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestContext
impl Debug for RequestContext
Source§impl<'de> Deserialize<'de> for RequestContext
impl<'de> Deserialize<'de> for RequestContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnwindSafe for RequestContext
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
impl<B> IntoFunctionResponse<B, Body> for Bwhere
B: Serialize,
Source§fn into_response(self) -> FunctionResponse<B, Body>
fn into_response(self) -> FunctionResponse<B, Body>
Convert the type into a FunctionResponse.