Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::get_bucket_cors::builders::GetBucketCorsOutputBuilder
#[non_exhaustive]pub struct GetBucketCorsOutputBuilder { /* private fields */ }
Expand description
A builder for GetBucketCorsOutput
.
Implementations§
§impl GetBucketCorsOutputBuilder
impl GetBucketCorsOutputBuilder
pub fn cors_rules(self, input: CorsRule) -> GetBucketCorsOutputBuilder
pub fn cors_rules(self, input: CorsRule) -> GetBucketCorsOutputBuilder
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>>
) -> GetBucketCorsOutputBuilder
pub fn set_cors_rules( self, input: Option<Vec<CorsRule>> ) -> GetBucketCorsOutputBuilder
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) -> GetBucketCorsOutput
pub fn build(self) -> GetBucketCorsOutput
Consumes the builder and constructs a GetBucketCorsOutput
.
Trait Implementations§
§impl Clone for GetBucketCorsOutputBuilder
impl Clone for GetBucketCorsOutputBuilder
§fn clone(&self) -> GetBucketCorsOutputBuilder
fn clone(&self) -> GetBucketCorsOutputBuilder
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 GetBucketCorsOutputBuilder
impl Debug for GetBucketCorsOutputBuilder
§impl Default for GetBucketCorsOutputBuilder
impl Default for GetBucketCorsOutputBuilder
§fn default() -> GetBucketCorsOutputBuilder
fn default() -> GetBucketCorsOutputBuilder
Returns the “default value” for a type. Read more
§impl PartialEq for GetBucketCorsOutputBuilder
impl PartialEq for GetBucketCorsOutputBuilder
§fn eq(&self, other: &GetBucketCorsOutputBuilder) -> bool
fn eq(&self, other: &GetBucketCorsOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetBucketCorsOutputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GetBucketCorsOutputBuilder
impl Send for GetBucketCorsOutputBuilder
impl Sync for GetBucketCorsOutputBuilder
impl Unpin for GetBucketCorsOutputBuilder
impl UnwindSafe for GetBucketCorsOutputBuilder
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