Struct mountpoint_s3_client::config::EndpointConfig
source · 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 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