pub struct ResponseHeadersPolicySecurityHeadersConfig {
pub xss_protection: Option<XssProtection>,
pub frame_options: Option<FrameOptions>,
pub referrer_policy: Option<ReferrerPolicy>,
pub content_security_policy: Option<ContentSecurityPolicy>,
pub content_type_options: Option<ContentTypeOptions>,
pub strict_transport_security: Option<StrictTransportSecurity>,
}Expand description
Security header configuration.
Fields§
§xss_protection: Option<XssProtection>XSS protection header settings.
frame_options: Option<FrameOptions>Frame options.
referrer_policy: Option<ReferrerPolicy>Referrer policy.
content_security_policy: Option<ContentSecurityPolicy>Content security policy.
content_type_options: Option<ContentTypeOptions>X-Content-Type-Options: nosniff.
strict_transport_security: Option<StrictTransportSecurity>Strict-Transport-Security.
Trait Implementations§
Source§impl Clone for ResponseHeadersPolicySecurityHeadersConfig
impl Clone for ResponseHeadersPolicySecurityHeadersConfig
Source§fn clone(&self) -> ResponseHeadersPolicySecurityHeadersConfig
fn clone(&self) -> ResponseHeadersPolicySecurityHeadersConfig
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 Default for ResponseHeadersPolicySecurityHeadersConfig
impl Default for ResponseHeadersPolicySecurityHeadersConfig
Source§fn default() -> ResponseHeadersPolicySecurityHeadersConfig
fn default() -> ResponseHeadersPolicySecurityHeadersConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseHeadersPolicySecurityHeadersConfig
impl<'de> Deserialize<'de> for ResponseHeadersPolicySecurityHeadersConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicySecurityHeadersConfig
impl RefUnwindSafe for ResponseHeadersPolicySecurityHeadersConfig
impl Send for ResponseHeadersPolicySecurityHeadersConfig
impl Sync for ResponseHeadersPolicySecurityHeadersConfig
impl Unpin for ResponseHeadersPolicySecurityHeadersConfig
impl UnsafeUnpin for ResponseHeadersPolicySecurityHeadersConfig
impl UnwindSafe for ResponseHeadersPolicySecurityHeadersConfig
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