#[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 ==
.impl StructuralPartialEq for ResponseHeadersPolicyContentSecurityPolicy
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyContentSecurityPolicy
impl RefUnwindSafe for ResponseHeadersPolicyContentSecurityPolicy
impl Send for ResponseHeadersPolicyContentSecurityPolicy
impl Sync for ResponseHeadersPolicyContentSecurityPolicy
impl Unpin for ResponseHeadersPolicyContentSecurityPolicy
impl UnwindSafe for ResponseHeadersPolicyContentSecurityPolicy
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more