[][src]Enum lambda_http::request::RequestContext

pub enum RequestContext {
    ApiGateway {
        account_id: String,
        resource_id: String,
        stage: String,
        request_id: String,
        resource_path: String,
        http_method: String,
        authorizer: HashMap<String, Value>,
        api_id: String,
        identity: Identity,
    },
    Alb {
        elb: Elb,
    },
}

Event request context as an enumeration of request contexts for both ALB and API Gateway http events

Variants

ApiGateway

Api Gateway request context

Fields of ApiGateway

account_id: Stringresource_id: Stringstage: Stringrequest_id: Stringresource_path: Stringhttp_method: Stringauthorizer: HashMap<String, Value>api_id: Stringidentity: Identity
Alb

ALB request context

Fields of Alb

elb: Elb

Methods

impl RequestContext[src]

pub fn is_alb(&self) -> bool[src]

Return true if this request context represents an ALB request

Trait Implementations

impl Default for RequestContext[src]

impl Clone for RequestContext[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RequestContext[src]

impl<'de> Deserialize<'de> for RequestContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T