Skip to main content

QueryExtractor

Trait QueryExtractor 

Source
pub trait QueryExtractor: Sized {
    // Required method
    fn query(self, name: String) -> Query<Self>;
}
Expand description

Extension trait for adding query parameter extraction to an extractor chain.

§For Callers

Chain this to extract URL query parameters as cache key parts. Each extracted parameter becomes a key part with the parameter name and value.

§For Implementors

This trait is automatically implemented for all Extractor types. You don’t need to implement it manually.

Required Methods§

Source

fn query(self, name: String) -> Query<Self>

Adds extraction for a single query parameter by name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E> QueryExtractor for E
where E: Extractor,