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§
source§impl Clone for ApiGatewayCustomAuthorizerContext
impl Clone for ApiGatewayCustomAuthorizerContext
source§fn clone(&self) -> ApiGatewayCustomAuthorizerContext
fn clone(&self) -> ApiGatewayCustomAuthorizerContext
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<'de> Deserialize<'de> for ApiGatewayCustomAuthorizerContext
impl<'de> Deserialize<'de> for ApiGatewayCustomAuthorizerContext
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