pub enum QueryFilter {
Exact(String),
Predicate(Box<dyn Fn(&str) -> bool>),
}Expand description
A filter for matching query parameter keys or path components.
Can be either an exact string match or a closure-based predicate.
Variants§
Exact(String)
Match the parameter key exactly.
Predicate(Box<dyn Fn(&str) -> bool>)
Match using a predicate function. For regex matching, users can bring their own regex crate.
Implementations§
Auto Trait Implementations§
impl Freeze for QueryFilter
impl !RefUnwindSafe for QueryFilter
impl !Send for QueryFilter
impl !Sync for QueryFilter
impl Unpin for QueryFilter
impl UnsafeUnpin for QueryFilter
impl !UnwindSafe for QueryFilter
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