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 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