pub struct SecurityHeadersConfig {
pub content_security_policy: HeaderValue,
pub strict_transport_security: HeaderValue,
pub x_content_type_options: HeaderValue,
pub x_frame_options: HeaderValue,
pub x_xss_protection: HeaderValue,
pub referrer_policy: HeaderValue,
pub permissions_policy: HeaderValue,
}Expand description
Configuration for security headers
Fields§
§content_security_policy: HeaderValue§strict_transport_security: HeaderValue§x_content_type_options: HeaderValue§x_frame_options: HeaderValue§x_xss_protection: HeaderValue§referrer_policy: HeaderValue§permissions_policy: HeaderValueTrait Implementations§
Source§impl Clone for SecurityHeadersConfig
impl Clone for SecurityHeadersConfig
Source§fn clone(&self) -> SecurityHeadersConfig
fn clone(&self) -> SecurityHeadersConfig
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 moreSource§impl Debug for SecurityHeadersConfig
impl Debug for SecurityHeadersConfig
Auto Trait Implementations§
impl !Freeze for SecurityHeadersConfig
impl RefUnwindSafe for SecurityHeadersConfig
impl Send for SecurityHeadersConfig
impl Sync for SecurityHeadersConfig
impl Unpin for SecurityHeadersConfig
impl UnsafeUnpin for SecurityHeadersConfig
impl UnwindSafe for SecurityHeadersConfig
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