#[non_exhaustive]pub struct ResponseHeadersPolicyFrameOptionsBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyFrameOptions
.
Implementations§
source§impl ResponseHeadersPolicyFrameOptionsBuilder
impl ResponseHeadersPolicyFrameOptionsBuilder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the X-Frame-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn set_override(self, input: Option<bool>) -> Self
pub fn set_override(self, input: Option<bool>) -> Self
A Boolean that determines whether CloudFront overrides the X-Frame-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn get_override(&self) -> &Option<bool>
pub fn get_override(&self) -> &Option<bool>
A Boolean that determines whether CloudFront overrides the X-Frame-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn frame_option(self, input: FrameOptionsList) -> Self
pub fn frame_option(self, input: FrameOptionsList) -> Self
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
For more information about these values, see X-Frame-Options in the MDN Web Docs.
This field is required.sourcepub fn set_frame_option(self, input: Option<FrameOptionsList>) -> Self
pub fn set_frame_option(self, input: Option<FrameOptionsList>) -> Self
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
For more information about these values, see X-Frame-Options in the MDN Web Docs.
sourcepub fn get_frame_option(&self) -> &Option<FrameOptionsList>
pub fn get_frame_option(&self) -> &Option<FrameOptionsList>
The value of the X-Frame-Options
HTTP response header. Valid values are DENY
and SAMEORIGIN
.
For more information about these values, see X-Frame-Options in the MDN Web Docs.
sourcepub fn build(self) -> Result<ResponseHeadersPolicyFrameOptions, BuildError>
pub fn build(self) -> Result<ResponseHeadersPolicyFrameOptions, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyFrameOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyFrameOptionsBuilder
impl Clone for ResponseHeadersPolicyFrameOptionsBuilder
source§fn clone(&self) -> ResponseHeadersPolicyFrameOptionsBuilder
fn clone(&self) -> ResponseHeadersPolicyFrameOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseHeadersPolicyFrameOptionsBuilder
impl Default for ResponseHeadersPolicyFrameOptionsBuilder
source§fn default() -> ResponseHeadersPolicyFrameOptionsBuilder
fn default() -> ResponseHeadersPolicyFrameOptionsBuilder
source§impl PartialEq for ResponseHeadersPolicyFrameOptionsBuilder
impl PartialEq for ResponseHeadersPolicyFrameOptionsBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyFrameOptionsBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyFrameOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.