Struct aws_lambda_events::event::apigw::ApiGatewayCustomAuthorizerContext [−][src]
pub struct ApiGatewayCustomAuthorizerContext {
pub principal_id: Option<String>,
pub string_key: Option<String>,
pub num_key: Option<i64>,
pub bool_key: Option<bool>,
}
Expand description
ApiGatewayCustomAuthorizerContext
represents the expected format of an API Gateway custom authorizer response.
Deprecated. Code should be updated to use the Authorizer map from APIGatewayRequestIdentity. Ex: Authorizer[“principalId”]
Fields
principal_id: Option<String>
string_key: Option<String>
num_key: Option<i64>
bool_key: Option<bool>
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for ApiGatewayCustomAuthorizerContext
impl Sync for ApiGatewayCustomAuthorizerContext
impl Unpin for ApiGatewayCustomAuthorizerContext
Blanket Implementations
Mutably borrows from an owned value. Read more