Struct rusoto_cognito_identity::MappingRule [−][src]
pub struct MappingRule { pub claim: String, pub match_type: String, pub role_arn: String, pub value: String, }
Expand description
A rule that maps a claim name, a claim value, and a match type to a role ARN.
Fields
claim: String
The claim name that must be present in the token, for example, "isAdmin" or "paid".
match_type: String
The match condition that specifies how closely the claim value in the IdP token must match Value
.
role_arn: String
The role ARN.
value: String
A brief string that the claim must match, for example, "paid" or "yes".
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for MappingRule
impl Send for MappingRule
impl Sync for MappingRule
impl Unpin for MappingRule
impl UnwindSafe for MappingRule
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self