pub struct MatchContext {
pub tenant: Option<String>,
pub principal: Option<String>,
pub service: Option<String>,
}Expand description
Context for variable resolution during ARN pattern matching.
Fields§
§tenant: Option<String>The caller’s tenant ID (resolves ${tenant})
principal: Option<String>The caller’s principal (resolves ${principal})
service: Option<String>The service name (resolves ${service})
Implementations§
Source§impl MatchContext
impl MatchContext
Trait Implementations§
Source§impl Clone for MatchContext
impl Clone for MatchContext
Source§fn clone(&self) -> MatchContext
fn clone(&self) -> MatchContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchContext
impl Debug for MatchContext
Source§impl Default for MatchContext
impl Default for MatchContext
Source§fn default() -> MatchContext
fn default() -> MatchContext
Returns the “default value” for a type. Read more
Source§impl From<&WamiContext> for MatchContext
Build a MatchContext from a WamiContext.
impl From<&WamiContext> for MatchContext
Build a MatchContext from a WamiContext.
Source§fn from(ctx: &WamiContext) -> Self
fn from(ctx: &WamiContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MatchContext
impl RefUnwindSafe for MatchContext
impl Send for MatchContext
impl Sync for MatchContext
impl Unpin for MatchContext
impl UnsafeUnpin for MatchContext
impl UnwindSafe for MatchContext
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