#[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 ==.