pub enum MatcherConfig {
Named(String),
Parameterized {
matcher_type: String,
param: Option<String>,
},
}Expand description
Configuration for a custom matcher (used with MatcherRegistry).
Variants§
Named(String)
A named matcher reference (e.g., "authenticated").
Parameterized
A parameterized matcher (e.g., { type = "scoped_role", param = "id" }).
Trait Implementations§
Source§impl Clone for MatcherConfig
impl Clone for MatcherConfig
Source§fn clone(&self) -> MatcherConfig
fn clone(&self) -> MatcherConfig
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 MatcherConfig
impl Debug for MatcherConfig
Source§impl<'de> Deserialize<'de> for MatcherConfig
impl<'de> Deserialize<'de> for MatcherConfig
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 MatcherConfig
impl RefUnwindSafe for MatcherConfig
impl Send for MatcherConfig
impl Sync for MatcherConfig
impl Unpin for MatcherConfig
impl UnsafeUnpin for MatcherConfig
impl UnwindSafe for MatcherConfig
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