#[non_exhaustive]pub struct ResponseHeadersPolicyRemoveHeadersConfigBuilder { /* private fields */ }
Expand description
A builder for ResponseHeadersPolicyRemoveHeadersConfig
.
Implementations§
source§impl ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl ResponseHeadersPolicyRemoveHeadersConfigBuilder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
The number of HTTP header names in the list.
This field is required.sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
The number of HTTP header names in the list.
sourcepub fn get_quantity(&self) -> &Option<i32>
pub fn get_quantity(&self) -> &Option<i32>
The number of HTTP header names in the list.
sourcepub fn items(self, input: ResponseHeadersPolicyRemoveHeader) -> Self
pub fn items(self, input: ResponseHeadersPolicyRemoveHeader) -> Self
Appends an item to items
.
To override the contents of this collection use set_items
.
The list of HTTP header names.
sourcepub fn set_items(
self,
input: Option<Vec<ResponseHeadersPolicyRemoveHeader>>
) -> Self
pub fn set_items( self, input: Option<Vec<ResponseHeadersPolicyRemoveHeader>> ) -> Self
The list of HTTP header names.
sourcepub fn get_items(&self) -> &Option<Vec<ResponseHeadersPolicyRemoveHeader>>
pub fn get_items(&self) -> &Option<Vec<ResponseHeadersPolicyRemoveHeader>>
The list of HTTP header names.
sourcepub fn build(
self
) -> Result<ResponseHeadersPolicyRemoveHeadersConfig, BuildError>
pub fn build( self ) -> Result<ResponseHeadersPolicyRemoveHeadersConfig, BuildError>
Consumes the builder and constructs a ResponseHeadersPolicyRemoveHeadersConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl Clone for ResponseHeadersPolicyRemoveHeadersConfigBuilder
source§fn clone(&self) -> ResponseHeadersPolicyRemoveHeadersConfigBuilder
fn clone(&self) -> ResponseHeadersPolicyRemoveHeadersConfigBuilder
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 ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl Default for ResponseHeadersPolicyRemoveHeadersConfigBuilder
source§fn default() -> ResponseHeadersPolicyRemoveHeadersConfigBuilder
fn default() -> ResponseHeadersPolicyRemoveHeadersConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl PartialEq for ResponseHeadersPolicyRemoveHeadersConfigBuilder
source§fn eq(&self, other: &ResponseHeadersPolicyRemoveHeadersConfigBuilder) -> bool
fn eq(&self, other: &ResponseHeadersPolicyRemoveHeadersConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResponseHeadersPolicyRemoveHeadersConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl Send for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl Sync for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl Unpin for ResponseHeadersPolicyRemoveHeadersConfigBuilder
impl UnwindSafe for ResponseHeadersPolicyRemoveHeadersConfigBuilder
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.