#[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 ==
.impl StructuralPartialEq for ResponseHeadersPolicyFrameOptionsBuilder
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyFrameOptionsBuilder
impl RefUnwindSafe for ResponseHeadersPolicyFrameOptionsBuilder
impl Send for ResponseHeadersPolicyFrameOptionsBuilder
impl Sync for ResponseHeadersPolicyFrameOptionsBuilder
impl Unpin for ResponseHeadersPolicyFrameOptionsBuilder
impl UnwindSafe for ResponseHeadersPolicyFrameOptionsBuilder
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