pub struct QueryPredicate { /* private fields */ }
Expand description
A predicate that matches on query parameters.
Implementations§
Source§impl QueryPredicate
impl QueryPredicate
Sourcepub fn new(config: QueryPredicateConfig) -> Self
pub fn new(config: QueryPredicateConfig) -> Self
Create a new query predicate with the given configuration.
Trait Implementations§
Source§impl Debug for QueryPredicate
impl Debug for QueryPredicate
Source§impl Predicate for QueryPredicate
impl Predicate for QueryPredicate
Source§fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn matches<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ProxyRequest,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if the request matches this predicate.
Source§fn predicate_type(&self) -> &str
fn predicate_type(&self) -> &str
Get the predicate type.
Auto Trait Implementations§
impl Freeze for QueryPredicate
impl RefUnwindSafe for QueryPredicate
impl Send for QueryPredicate
impl Sync for QueryPredicate
impl Unpin for QueryPredicate
impl UnwindSafe for QueryPredicate
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