Struct warp::filters::reply::WithHeader
source · pub struct WithHeader {
name: HeaderName,
value: HeaderValue,
}
Expand description
Wrap a Filter
to always set a header.
Fields§
§name: HeaderName
§value: HeaderValue
Trait Implementations§
source§impl Clone for WithHeader
impl Clone for WithHeader
source§fn clone(&self) -> WithHeader
fn clone(&self) -> WithHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WithHeader
impl Debug for WithHeader
source§impl<F, R> WrapSealed<F> for WithHeader
impl<F, R> WrapSealed<F> for WithHeader
Auto Trait Implementations§
impl !Freeze for WithHeader
impl RefUnwindSafe for WithHeader
impl Send for WithHeader
impl Sync for WithHeader
impl Unpin for WithHeader
impl UnwindSafe for WithHeader
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