Enum lambda_http::request::RequestContext
source · pub enum RequestContext {
ApiGatewayV1(ApiGatewayProxyRequestContext),
ApiGatewayV2(ApiGatewayV2httpRequestContext),
Alb(AlbTargetGroupRequestContext),
WebSocket(ApiGatewayWebsocketProxyRequestContext),
}
Expand description
Event request context as an enumeration of request contexts for both ALB and API Gateway and HTTP API events
Variants§
ApiGatewayV1(ApiGatewayProxyRequestContext)
API Gateway proxy request context
ApiGatewayV2(ApiGatewayV2httpRequestContext)
API Gateway v2 request context
Alb(AlbTargetGroupRequestContext)
ALB request context
WebSocket(ApiGatewayWebsocketProxyRequestContext)
WebSocket request context
Trait Implementations§
source§impl Clone for RequestContext
impl Clone for RequestContext
source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
Returns a copy 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 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