ApiGatewayProxyRequestContext

Struct ApiGatewayProxyRequestContext 

Source
#[non_exhaustive]
pub struct ApiGatewayProxyRequestContext {
Show 17 fields pub account_id: Option<String>, pub resource_id: Option<String>, pub operation_name: Option<String>, pub stage: Option<String>, pub domain_name: Option<String>, pub domain_prefix: Option<String>, pub request_id: Option<String>, pub protocol: Option<String>, pub identity: ApiGatewayRequestIdentity, pub resource_path: Option<String>, pub path: Option<String>, pub authorizer: ApiGatewayRequestAuthorizer, pub http_method: Method, pub request_time: Option<String>, pub request_time_epoch: i64, pub apiid: Option<String>, pub other: Map<String, Value>,
}
Available on crate feature apigw only.
Expand description

ApiGatewayProxyRequestContext contains the information to identify the AWS account and resources invoking the Lambda function. It also includes Cognito identity information for the caller.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§account_id: Option<String>§resource_id: Option<String>§operation_name: Option<String>§stage: Option<String>§domain_name: Option<String>§domain_prefix: Option<String>§request_id: Option<String>§protocol: Option<String>§identity: ApiGatewayRequestIdentity§resource_path: Option<String>§path: Option<String>§authorizer: ApiGatewayRequestAuthorizer§http_method: Method§request_time: Option<String>§request_time_epoch: i64§apiid: Option<String>

The API Gateway rest API Id

§other: Map<String, Value>
Available on crate feature catch-all-fields only.

Catchall to catch any additional fields that were present but not explicitly defined by this struct. Enabled with Cargo feature catch-all-fields. If catch-all-fields is disabled, any additional fields that are present will be ignored.

Trait Implementations§

Source§

impl Clone for ApiGatewayProxyRequestContext

Source§

fn clone(&self) -> ApiGatewayProxyRequestContext

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ApiGatewayProxyRequestContext

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ApiGatewayProxyRequestContext

Source§

fn default() -> ApiGatewayProxyRequestContext

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ApiGatewayProxyRequestContext

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ApiGatewayProxyRequestContext

Source§

fn eq(&self, other: &ApiGatewayProxyRequestContext) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ApiGatewayProxyRequestContext

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for ApiGatewayProxyRequestContext

Source§

impl StructuralPartialEq for ApiGatewayProxyRequestContext

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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