pub struct ClaimMappingRule {
pub source_claim: String,
pub match_type: String,
pub match_value: String,
pub action: String,
pub target: String,
}Expand description
A rule that maps an external IdP claim to a local attribute or role.
Fields§
§source_claim: StringThe external claim path (e.g. “groups”, “email”, “roles”).
match_type: StringMatch condition: “equals”, “contains”, “regex”.
match_value: StringValue to match against.
action: StringAction: “assign_role”, “set_attribute”, “add_to_org”.
target: StringTarget value for the action (e.g. role name, attribute value, org slug).
Trait Implementations§
Source§impl Clone for ClaimMappingRule
impl Clone for ClaimMappingRule
Source§fn clone(&self) -> ClaimMappingRule
fn clone(&self) -> ClaimMappingRule
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 ClaimMappingRule
impl Debug for ClaimMappingRule
Source§impl<'de> Deserialize<'de> for ClaimMappingRule
impl<'de> Deserialize<'de> for ClaimMappingRule
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
Auto Trait Implementations§
impl Freeze for ClaimMappingRule
impl RefUnwindSafe for ClaimMappingRule
impl Send for ClaimMappingRule
impl Sync for ClaimMappingRule
impl Unpin for ClaimMappingRule
impl UnsafeUnpin for ClaimMappingRule
impl UnwindSafe for ClaimMappingRule
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