pub struct HasHeader(pub HeaderName);Expand description
Simple HeaderName
response guard.
Blocks the response if the specified header is present.
Tuple Fields§
§0: HeaderNameImplementations§
Trait Implementations§
Source§impl From<HeaderName> for HasHeader
impl From<HeaderName> for HasHeader
Source§fn from(value: HeaderName) -> Self
fn from(value: HeaderName) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for HasHeader
impl RefUnwindSafe for HasHeader
impl Send for HasHeader
impl Sync for HasHeader
impl Unpin for HasHeader
impl UnwindSafe for HasHeader
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