pub struct SetSensitiveResponseHeadersLayer { /* private fields */ }
Available on crate feature
sensitive-headers
only.Expand description
Mark response headers as sensitive.
Produces SetSensitiveResponseHeaders
services.
See the module docs for more details.
Implementations§
Source§impl SetSensitiveResponseHeadersLayer
impl SetSensitiveResponseHeadersLayer
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 SetSensitiveResponseHeadersLayer
.
Create a new SetSensitiveResponseHeadersLayer
from a shared slice of headers.
Trait Implementations§
Source§impl Clone for SetSensitiveResponseHeadersLayer
impl Clone for SetSensitiveResponseHeadersLayer
Source§fn clone(&self) -> SetSensitiveResponseHeadersLayer
fn clone(&self) -> SetSensitiveResponseHeadersLayer
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 moreAuto Trait Implementations§
impl Freeze for SetSensitiveResponseHeadersLayer
impl RefUnwindSafe for SetSensitiveResponseHeadersLayer
impl Send for SetSensitiveResponseHeadersLayer
impl Sync for SetSensitiveResponseHeadersLayer
impl Unpin for SetSensitiveResponseHeadersLayer
impl UnwindSafe for SetSensitiveResponseHeadersLayer
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