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: StringThe claim name that must be present in the token, for example, "isAdmin" or "paid".
match_type: StringThe match condition that specifies how closely the claim value in the IdP token must match Value.
role_arn: StringThe role ARN.
value: StringA brief string that the claim must match, for example, "paid" or "yes".
Trait Implementations§
Source§impl Clone for MappingRule
impl Clone for MappingRule
Source§fn clone(&self) -> MappingRule
fn clone(&self) -> MappingRule
Returns a duplicate 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 Debug for MappingRule
impl Debug for MappingRule
Source§impl Default for MappingRule
impl Default for MappingRule
Source§fn default() -> MappingRule
fn default() -> MappingRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MappingRule
impl<'de> Deserialize<'de> for MappingRule
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 MappingRule
impl PartialEq for MappingRule
Source§impl Serialize for MappingRule
impl Serialize for MappingRule
impl StructuralPartialEq for MappingRule
Auto Trait Implementations§
impl Freeze for MappingRule
impl RefUnwindSafe for MappingRule
impl Send for MappingRule
impl Sync for MappingRule
impl Unpin for MappingRule
impl UnwindSafe for MappingRule
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