pub struct EndpointConfig { /* private fields */ }Expand description
Configuration for resolution of S3 endpoints
Implementations§
Source§impl EndpointConfig
impl EndpointConfig
Sourcepub fn use_accelerate(self, accelerate: bool) -> Self
pub fn use_accelerate(self, accelerate: bool) -> Self
use Transfer Acceleration config for S3
Sourcepub fn use_dual_stack(self, dual_stack: bool) -> Self
pub fn use_dual_stack(self, dual_stack: bool) -> Self
use dual stack config for S3
Sourcepub fn addressing_style(self, addressing_style: AddressingStyle) -> Self
pub fn addressing_style(self, addressing_style: AddressingStyle) -> Self
Set addressing style for EndpointConfig
Sourcepub fn get_region(&self) -> &str
pub fn get_region(&self) -> &str
get the region from the EndpointConfig
Sourcepub fn get_fips(&self) -> bool
pub fn get_fips(&self) -> bool
get the fips config from the EndpointConfig
Sourcepub fn get_accelerate(&self) -> bool
pub fn get_accelerate(&self) -> bool
get the transfer acceleration config from the EndpointConfig
Sourcepub fn get_dual_stack(&self) -> bool
pub fn get_dual_stack(&self) -> bool
get the dual stack config from the EndpointConfig
Sourcepub fn get_endpoint(&self) -> Option<Uri>
pub fn get_endpoint(&self) -> Option<Uri>
get the endpoint uri if provided from EndpointConfig
Sourcepub fn get_addressing_style(&self) -> AddressingStyle
pub fn get_addressing_style(&self) -> AddressingStyle
get the addressing style from the EndpointConfig
Sourcepub fn resolve_for_bucket(
&self,
bucket: &str,
) -> Result<ResolvedEndpointInfo, EndpointError>
pub fn resolve_for_bucket( &self, bucket: &str, ) -> Result<ResolvedEndpointInfo, EndpointError>
resolve the endpoint from the EndpointConfig and the bucket name
Trait Implementations§
Source§impl Clone for EndpointConfig
impl Clone for EndpointConfig
Source§fn clone(&self) -> EndpointConfig
fn clone(&self) -> EndpointConfig
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 moreAuto Trait Implementations§
impl Freeze for EndpointConfig
impl RefUnwindSafe for EndpointConfig
impl Send for EndpointConfig
impl Sync for EndpointConfig
impl Unpin for EndpointConfig
impl UnwindSafe for EndpointConfig
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