pub struct CognitoAccessTokenGenerationV2 {
pub claims_to_add_or_override: HashMap<String, String>,
pub claims_to_suppress: Vec<String>,
pub scopes_to_add: Vec<String>,
pub scopes_to_suppress: Vec<String>,
}
Expand description
CognitoAccessTokenGenerationV2
allows lambda to customize the Access Token before generation
Fields§
§claims_to_add_or_override: HashMap<String, String>
§claims_to_suppress: Vec<String>
§scopes_to_add: Vec<String>
§scopes_to_suppress: Vec<String>
Trait Implementations§
source§impl Clone for CognitoAccessTokenGenerationV2
impl Clone for CognitoAccessTokenGenerationV2
source§fn clone(&self) -> CognitoAccessTokenGenerationV2
fn clone(&self) -> CognitoAccessTokenGenerationV2
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 CognitoAccessTokenGenerationV2
impl Default for CognitoAccessTokenGenerationV2
source§fn default() -> CognitoAccessTokenGenerationV2
fn default() -> CognitoAccessTokenGenerationV2
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CognitoAccessTokenGenerationV2
impl<'de> Deserialize<'de> for CognitoAccessTokenGenerationV2
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 CognitoAccessTokenGenerationV2
impl PartialEq for CognitoAccessTokenGenerationV2
source§fn eq(&self, other: &CognitoAccessTokenGenerationV2) -> bool
fn eq(&self, other: &CognitoAccessTokenGenerationV2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CognitoAccessTokenGenerationV2
impl StructuralPartialEq for CognitoAccessTokenGenerationV2
Auto Trait Implementations§
impl Freeze for CognitoAccessTokenGenerationV2
impl RefUnwindSafe for CognitoAccessTokenGenerationV2
impl Send for CognitoAccessTokenGenerationV2
impl Sync for CognitoAccessTokenGenerationV2
impl Unpin for CognitoAccessTokenGenerationV2
impl UnwindSafe for CognitoAccessTokenGenerationV2
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