#[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>§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
impl Clone for ApiGatewayProxyRequestContext
Source§fn clone(&self) -> ApiGatewayProxyRequestContext
fn clone(&self) -> ApiGatewayProxyRequestContext
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 Default for ApiGatewayProxyRequestContext
impl Default for ApiGatewayProxyRequestContext
Source§fn default() -> ApiGatewayProxyRequestContext
fn default() -> ApiGatewayProxyRequestContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiGatewayProxyRequestContext
impl<'de> Deserialize<'de> for ApiGatewayProxyRequestContext
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
impl Eq for ApiGatewayProxyRequestContext
impl StructuralPartialEq for ApiGatewayProxyRequestContext
Auto Trait Implementations§
impl Freeze for ApiGatewayProxyRequestContext
impl RefUnwindSafe for ApiGatewayProxyRequestContext
impl Send for ApiGatewayProxyRequestContext
impl Sync for ApiGatewayProxyRequestContext
impl Unpin for ApiGatewayProxyRequestContext
impl UnwindSafe for ApiGatewayProxyRequestContext
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)