#[non_exhaustive]pub struct ResponseHeadersPolicyReferrerPolicyBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyReferrerPolicy
.
Implementations§
source§impl ResponseHeadersPolicyReferrerPolicyBuilder
impl ResponseHeadersPolicyReferrerPolicyBuilder
sourcepub fn override(self, input: bool) -> Self
pub fn override(self, input: bool) -> Self
A Boolean that determines whether CloudFront overrides the Referrer-Policy
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 Referrer-Policy
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 Referrer-Policy
HTTP response header received from the origin with the one specified in this response headers policy.
sourcepub fn referrer_policy(self, input: ReferrerPolicyList) -> Self
pub fn referrer_policy(self, input: ReferrerPolicyList) -> Self
The value of the Referrer-Policy
HTTP response header. Valid values are:
-
no-referrer
-
no-referrer-when-downgrade
-
origin
-
origin-when-cross-origin
-
same-origin
-
strict-origin
-
strict-origin-when-cross-origin
-
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
This field is required.sourcepub fn set_referrer_policy(self, input: Option<ReferrerPolicyList>) -> Self
pub fn set_referrer_policy(self, input: Option<ReferrerPolicyList>) -> Self
The value of the Referrer-Policy
HTTP response header. Valid values are:
-
no-referrer
-
no-referrer-when-downgrade
-
origin
-
origin-when-cross-origin
-
same-origin
-
strict-origin
-
strict-origin-when-cross-origin
-
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
sourcepub fn get_referrer_policy(&self) -> &Option<ReferrerPolicyList>
pub fn get_referrer_policy(&self) -> &Option<ReferrerPolicyList>
The value of the Referrer-Policy
HTTP response header. Valid values are:
-
no-referrer
-
no-referrer-when-downgrade
-
origin
-
origin-when-cross-origin
-
same-origin
-
strict-origin
-
strict-origin-when-cross-origin
-
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
sourcepub fn build(self) -> Result<ResponseHeadersPolicyReferrerPolicy, BuildError>
pub fn build(self) -> Result<ResponseHeadersPolicyReferrerPolicy, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyReferrerPolicy
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyReferrerPolicyBuilder
impl Clone for ResponseHeadersPolicyReferrerPolicyBuilder
source§fn clone(&self) -> ResponseHeadersPolicyReferrerPolicyBuilder
fn clone(&self) -> ResponseHeadersPolicyReferrerPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ResponseHeadersPolicyReferrerPolicyBuilder
impl Default for ResponseHeadersPolicyReferrerPolicyBuilder
source§fn default() -> ResponseHeadersPolicyReferrerPolicyBuilder
fn default() -> ResponseHeadersPolicyReferrerPolicyBuilder
source§impl PartialEq for ResponseHeadersPolicyReferrerPolicyBuilder
impl PartialEq for ResponseHeadersPolicyReferrerPolicyBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyReferrerPolicyBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyReferrerPolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicyReferrerPolicyBuilder
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyReferrerPolicyBuilder
impl RefUnwindSafe for ResponseHeadersPolicyReferrerPolicyBuilder
impl Send for ResponseHeadersPolicyReferrerPolicyBuilder
impl Sync for ResponseHeadersPolicyReferrerPolicyBuilder
impl Unpin for ResponseHeadersPolicyReferrerPolicyBuilder
impl UnwindSafe for ResponseHeadersPolicyReferrerPolicyBuilder
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