#[non_exhaustive]pub struct ResponseHeadersPolicyContentSecurityPolicy {
pub override: bool,
pub content_security_policy: String,
}
Expand description
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
For more information about the Content-Security-Policy
HTTP response header, see Content-Security-Policy in the MDN Web Docs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.override: bool
A Boolean that determines whether CloudFront overrides the Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
content_security_policy: String
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
Implementations§
source§impl ResponseHeadersPolicyContentSecurityPolicy
impl ResponseHeadersPolicyContentSecurityPolicy
sourcepub fn override(&self) -> bool
pub fn override(&self) -> bool
A Boolean that determines whether CloudFront overrides the Content-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn content_security_policy(&self) -> &str
pub fn content_security_policy(&self) -> &str
The policy directives and their values that CloudFront includes as values for the Content-Security-Policy
HTTP response header.
source§impl ResponseHeadersPolicyContentSecurityPolicy
impl ResponseHeadersPolicyContentSecurityPolicy
sourcepub fn builder() -> ResponseHeadersPolicyContentSecurityPolicyBuilder
pub fn builder() -> ResponseHeadersPolicyContentSecurityPolicyBuilder
Creates a new builder-style object to manufacture ResponseHeadersPolicyContentSecurityPolicy
.
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyContentSecurityPolicy
impl Clone for ResponseHeadersPolicyContentSecurityPolicy
source§fn clone(&self) -> ResponseHeadersPolicyContentSecurityPolicy
fn clone(&self) -> ResponseHeadersPolicyContentSecurityPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ResponseHeadersPolicyContentSecurityPolicy
impl PartialEq for ResponseHeadersPolicyContentSecurityPolicy
source§fn eq(&self, other: &ResponseHeadersPolicyContentSecurityPolicy) -> bool
fn eq(&self, other: &ResponseHeadersPolicyContentSecurityPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.