pub struct ValidApiKeyHeader(/* private fields */);Expand description
An extractor to read the ‘mutator_apikey’ header and check that it’s the right one.
Auto Trait Implementations§
impl Freeze for ValidApiKeyHeader
impl RefUnwindSafe for ValidApiKeyHeader
impl Send for ValidApiKeyHeader
impl Sync for ValidApiKeyHeader
impl Unpin for ValidApiKeyHeader
impl UnwindSafe for ValidApiKeyHeader
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
Source§impl<S, B, T> FromRequest<S, B, ViaParts> for T
impl<S, B, T> FromRequest<S, B, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.