Struct mountpoint_s3_client::config::S3ClientConfig
source · pub struct S3ClientConfig { /* private fields */ }Expand description
Configurations for the CRT-based S3 client
Implementations§
source§impl S3ClientConfig
impl S3ClientConfig
pub fn new() -> Self
sourcepub fn auth_config(self, auth_config: S3ClientAuthConfig) -> Self
pub fn auth_config(self, auth_config: S3ClientAuthConfig) -> Self
Set the configuration for authenticating to S3
sourcepub fn part_size(self, part_size: usize) -> Self
pub fn part_size(self, part_size: usize) -> Self
Set the part size for multi-part operations to S3 (both PUT and GET)
sourcepub fn throughput_target_gbps(self, throughput_target_gbps: f64) -> Self
pub fn throughput_target_gbps(self, throughput_target_gbps: f64) -> Self
Set the target throughput in Gbps for the S3 client
sourcepub fn endpoint_config(self, endpoint_config: EndpointConfig) -> Self
pub fn endpoint_config(self, endpoint_config: EndpointConfig) -> Self
Set the endpoint configuration for endpoint resolution
sourcepub fn user_agent_prefix(self, user_agent_prefix: &str) -> Self
pub fn user_agent_prefix(self, user_agent_prefix: &str) -> Self
Set a prefix to prepend to the User-agent HTTP header for S3 requests
sourcepub fn request_payer(self, request_payer: &str) -> Self
pub fn request_payer(self, request_payer: &str) -> Self
Set a value for the request payer HTTP header for S3 requests
sourcepub fn bucket_owner(self, bucket_owner: &str) -> Self
pub fn bucket_owner(self, bucket_owner: &str) -> Self
Set an expected bucket owner value
Trait Implementations§
source§impl Clone for S3ClientConfig
impl Clone for S3ClientConfig
source§fn clone(&self) -> S3ClientConfig
fn clone(&self) -> S3ClientConfig
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 Debug for S3ClientConfig
impl Debug for S3ClientConfig
Auto Trait Implementations§
impl RefUnwindSafe for S3ClientConfig
impl Send for S3ClientConfig
impl Sync for S3ClientConfig
impl Unpin for S3ClientConfig
impl UnwindSafe for S3ClientConfig
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