pub struct ApiGatewayCustomAuthorizerContext {
pub principal_id: Option<String>,
pub string_key: Option<String>,
pub num_key: Option<i64>,
pub bool_key: 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: 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 Default for ApiGatewayCustomAuthorizerContext
impl Default for ApiGatewayCustomAuthorizerContext
source§fn default() -> ApiGatewayCustomAuthorizerContext
fn default() -> ApiGatewayCustomAuthorizerContext
Returns the “default value” for a type. Read more
source§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
source§impl PartialEq for ApiGatewayCustomAuthorizerContext
impl PartialEq for ApiGatewayCustomAuthorizerContext
source§fn eq(&self, other: &ApiGatewayCustomAuthorizerContext) -> bool
fn eq(&self, other: &ApiGatewayCustomAuthorizerContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ApiGatewayCustomAuthorizerContext
impl StructuralPartialEq for ApiGatewayCustomAuthorizerContext
Auto Trait Implementations§
impl RefUnwindSafe for ApiGatewayCustomAuthorizerContext
impl Send for ApiGatewayCustomAuthorizerContext
impl Sync for ApiGatewayCustomAuthorizerContext
impl Unpin for ApiGatewayCustomAuthorizerContext
impl UnwindSafe for ApiGatewayCustomAuthorizerContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more