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
sourceimpl Clone for ApiGatewayCustomAuthorizerContext
impl Clone for ApiGatewayCustomAuthorizerContext
sourcefn clone(&self) -> ApiGatewayCustomAuthorizerContext
fn clone(&self) -> ApiGatewayCustomAuthorizerContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for ApiGatewayCustomAuthorizerContext
impl<'de> Deserialize<'de> for ApiGatewayCustomAuthorizerContext
sourcefn 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
sourceimpl PartialEq<ApiGatewayCustomAuthorizerContext> for ApiGatewayCustomAuthorizerContext
impl PartialEq<ApiGatewayCustomAuthorizerContext> for ApiGatewayCustomAuthorizerContext
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ApiGatewayCustomAuthorizerContext) -> bool
fn ne(&self, other: &ApiGatewayCustomAuthorizerContext) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more