pub struct NeutralExtractor<ReqBody> { /* private fields */ }Expand description
Base extractor that produces an empty cache key.
This is an internal building block used by other extractors. Users should
start extractor chains with Method::new() instead.
§Type Parameters
ReqBody- The HTTP request body type. Must implementhyper::body::BodywithSendbounds. This parameter propagates through extractor chains to ensure type safety.
§When You’ll Encounter This
You typically don’t create this directly. It appears as the innermost type in extractor chains:
use hitbox_http::extractors::{Method, path::PathExtractor};
// The full type is Path<Method<NeutralExtractor<Empty<Bytes>>>>
let extractor = Method::new().path("/users/{id}");Implementations§
Source§impl<ResBody> NeutralExtractor<ResBody>
impl<ResBody> NeutralExtractor<ResBody>
Trait Implementations§
Source§impl<ReqBody: Debug> Debug for NeutralExtractor<ReqBody>
impl<ReqBody: Debug> Debug for NeutralExtractor<ReqBody>
Source§impl<ResBody> Default for NeutralExtractor<ResBody>
impl<ResBody> Default for NeutralExtractor<ResBody>
Source§impl<ResBody> Extractor for NeutralExtractor<ResBody>
impl<ResBody> Extractor for NeutralExtractor<ResBody>
Source§type Subject = CacheableHttpRequest<ResBody>
type Subject = CacheableHttpRequest<ResBody>
The type from which cache key components are extracted.
Auto Trait Implementations§
impl<ReqBody> Freeze for NeutralExtractor<ReqBody>
impl<ReqBody> RefUnwindSafe for NeutralExtractor<ReqBody>
impl<ReqBody> Send for NeutralExtractor<ReqBody>
impl<ReqBody> Sync for NeutralExtractor<ReqBody>
impl<ReqBody> Unpin for NeutralExtractor<ReqBody>
impl<ReqBody> UnwindSafe for NeutralExtractor<ReqBody>
Blanket Implementations§
Source§impl<E> BodyExtractor for Ewhere
E: Extractor,
impl<E> BodyExtractor for Ewhere
E: Extractor,
Source§fn body(self, extraction: BodyExtraction) -> Body<E>
fn body(self, extraction: BodyExtraction) -> Body<E>
Adds body extraction with the specified mode.
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