pub enum PathMatch {
Exact(String),
Prefix(String),
Regex(Regex),
Custom(fn(&str) -> bool),
}
Expand description
Path matching strategy
Variants§
Exact(String)
Exact path match
Prefix(String)
Path prefix match
Regex(Regex)
Regex pattern match (stores compiled regex for performance)
Custom(fn(&str) -> bool)
Custom matcher function
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathMatch
impl RefUnwindSafe for PathMatch
impl Send for PathMatch
impl Sync for PathMatch
impl Unpin for PathMatch
impl UnwindSafe for PathMatch
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