#[non_exhaustive]pub struct ResponseHeadersPolicyContentTypeOptionsBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyContentTypeOptions
.
Implementations§
source§impl ResponseHeadersPolicyContentTypeOptionsBuilder
impl ResponseHeadersPolicyContentTypeOptionsBuilder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the X-Content-Type-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-Content-Type-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-Content-Type-Options
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn build(
self
) -> Result<ResponseHeadersPolicyContentTypeOptions, BuildError>
pub fn build( self ) -> Result<ResponseHeadersPolicyContentTypeOptions, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyContentTypeOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Clone for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn clone(&self) -> ResponseHeadersPolicyContentTypeOptionsBuilder
fn clone(&self) -> ResponseHeadersPolicyContentTypeOptionsBuilder
Returns a copy of the value. Read more
1.0.0 · 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 ResponseHeadersPolicyContentTypeOptionsBuilder
impl Default for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn default() -> ResponseHeadersPolicyContentTypeOptionsBuilder
fn default() -> ResponseHeadersPolicyContentTypeOptionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResponseHeadersPolicyContentTypeOptionsBuilder
impl PartialEq for ResponseHeadersPolicyContentTypeOptionsBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyContentTypeOptionsBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyContentTypeOptionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicyContentTypeOptionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Send for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Sync for ResponseHeadersPolicyContentTypeOptionsBuilder
impl Unpin for ResponseHeadersPolicyContentTypeOptionsBuilder
impl UnwindSafe for ResponseHeadersPolicyContentTypeOptionsBuilder
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
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>
Creates a shared type from an unshared type.