Struct bonsaidb::keystorage::s3::aws_sdk_s3::types::builders::CorsConfigurationBuilder
#[non_exhaustive]pub struct CorsConfigurationBuilder { /* private fields */ }
Expand description
A builder for CorsConfiguration
.
Implementations§
§impl CorsConfigurationBuilder
impl CorsConfigurationBuilder
pub fn cors_rules(self, input: CorsRule) -> CorsConfigurationBuilder
pub fn cors_rules(self, input: CorsRule) -> CorsConfigurationBuilder
Appends an item to cors_rules
.
To override the contents of this collection use set_cors_rules
.
A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
pub fn set_cors_rules(
self,
input: Option<Vec<CorsRule>>
) -> CorsConfigurationBuilder
pub fn set_cors_rules( self, input: Option<Vec<CorsRule>> ) -> CorsConfigurationBuilder
A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
pub fn get_cors_rules(&self) -> &Option<Vec<CorsRule>>
pub fn get_cors_rules(&self) -> &Option<Vec<CorsRule>>
A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.
pub fn build(self) -> CorsConfiguration
pub fn build(self) -> CorsConfiguration
Consumes the builder and constructs a CorsConfiguration
.
Trait Implementations§
§impl Clone for CorsConfigurationBuilder
impl Clone for CorsConfigurationBuilder
§fn clone(&self) -> CorsConfigurationBuilder
fn clone(&self) -> CorsConfigurationBuilder
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 more§impl Debug for CorsConfigurationBuilder
impl Debug for CorsConfigurationBuilder
§impl Default for CorsConfigurationBuilder
impl Default for CorsConfigurationBuilder
§fn default() -> CorsConfigurationBuilder
fn default() -> CorsConfigurationBuilder
Returns the “default value” for a type. Read more
§impl PartialEq for CorsConfigurationBuilder
impl PartialEq for CorsConfigurationBuilder
§fn eq(&self, other: &CorsConfigurationBuilder) -> bool
fn eq(&self, other: &CorsConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CorsConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CorsConfigurationBuilder
impl Send for CorsConfigurationBuilder
impl Sync for CorsConfigurationBuilder
impl Unpin for CorsConfigurationBuilder
impl UnwindSafe for CorsConfigurationBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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