pub struct SecurityHeadersLayer {
pub config: SecurityHeadersConfig,
}Fields§
§config: SecurityHeadersConfigImplementations§
Source§impl SecurityHeadersLayer
impl SecurityHeadersLayer
Sourcepub fn new(config: SecurityHeadersConfig) -> Self
pub fn new(config: SecurityHeadersConfig) -> Self
Create a new SecurityLayer
Trait Implementations§
Source§impl Clone for SecurityHeadersLayer
impl Clone for SecurityHeadersLayer
Source§fn clone(&self) -> SecurityHeadersLayer
fn clone(&self) -> SecurityHeadersLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityHeadersLayer
impl RefUnwindSafe for SecurityHeadersLayer
impl Send for SecurityHeadersLayer
impl Sync for SecurityHeadersLayer
impl Unpin for SecurityHeadersLayer
impl UnsafeUnpin for SecurityHeadersLayer
impl UnwindSafe for SecurityHeadersLayer
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