pub struct SetSensitiveHeadersLayer { /* private fields */ }
Available on crate feature
sensitive-headers
only.Expand description
Mark headers as sensitive on both requests and responses.
Produces SetSensitiveHeaders
services.
See the module docs for more details.
Implementations§
Source§impl SetSensitiveHeadersLayer
impl SetSensitiveHeadersLayer
Sourcepub fn new<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
pub fn new<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
Create a new SetSensitiveHeadersLayer
.
Create a new SetSensitiveHeadersLayer
from a shared slice of headers.
Trait Implementations§
Source§impl Clone for SetSensitiveHeadersLayer
impl Clone for SetSensitiveHeadersLayer
Source§fn clone(&self) -> SetSensitiveHeadersLayer
fn clone(&self) -> SetSensitiveHeadersLayer
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 SetSensitiveHeadersLayer
impl Debug for SetSensitiveHeadersLayer
Source§impl<S> Layer<S> for SetSensitiveHeadersLayer
impl<S> Layer<S> for SetSensitiveHeadersLayer
Source§type Service = SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<S>>
type Service = SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<S>>
The wrapped service
Auto Trait Implementations§
impl Freeze for SetSensitiveHeadersLayer
impl RefUnwindSafe for SetSensitiveHeadersLayer
impl Send for SetSensitiveHeadersLayer
impl Sync for SetSensitiveHeadersLayer
impl Unpin for SetSensitiveHeadersLayer
impl UnwindSafe for SetSensitiveHeadersLayer
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