pub struct S3ConfigBuilder { /* private fields */ }Expand description
Builder for S3Config.
Implementations§
Source§impl S3ConfigBuilder
impl S3ConfigBuilder
Sourcepub fn endpoint(self, endpoint: Endpoint) -> Self
pub fn endpoint(self, endpoint: Endpoint) -> Self
Sets a custom endpoint. HTTP endpoints still require explicit opt-in.
Sourcepub fn addressing_style(self, style: AddressingStyle) -> Self
pub fn addressing_style(self, style: AddressingStyle) -> Self
Sets the bucket addressing style.
Sourcepub fn allow_http_for_local_testing(self) -> Self
pub fn allow_http_for_local_testing(self) -> Self
Explicitly permits plain HTTP for local S3-compatible testing.
This does not disable TLS verification for HTTPS endpoints and should not be enabled for endpoints reached over an untrusted network.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Sets the connection-establishment timeout.
Sourcepub fn attempt_timeout(self, timeout: Duration) -> Self
pub fn attempt_timeout(self, timeout: Duration) -> Self
Sets the timeout for each individual request attempt.
Sourcepub fn operation_timeout(self, timeout: Duration) -> Self
pub fn operation_timeout(self, timeout: Duration) -> Self
Sets the overall timeout for one primitive S3 operation across retries.
Managed multipart uploads instead use the transfer and cleanup deadlines
in crate::MultipartOptions.
Sourcepub fn idle_body_timeout(self, timeout: Duration) -> Self
pub fn idle_body_timeout(self, timeout: Duration) -> Self
Sets the maximum idle period while streaming a response body.
Sourcepub fn max_xml_response_size(self, bytes: usize) -> Self
pub fn max_xml_response_size(self, bytes: usize) -> Self
Sets the maximum XML response body size.
Sourcepub fn max_error_response_size(self, bytes: usize) -> Self
pub fn max_error_response_size(self, bytes: usize) -> Self
Sets the maximum error response body size.
Sourcepub fn retry_policy(self, policy: RetryPolicy) -> Self
pub fn retry_policy(self, policy: RetryPolicy) -> Self
Sets the retry policy.
Sourcepub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
Sets the HTTP user-agent value.
Sourcepub fn credentials_provider(
self,
provider: Arc<dyn CredentialsProvider>,
) -> Self
pub fn credentials_provider( self, provider: Arc<dyn CredentialsProvider>, ) -> Self
Sets the asynchronous credential provider.
Sourcepub fn observer(self, observer: Arc<dyn RequestObserver>) -> Self
pub fn observer(self, observer: Arc<dyn RequestObserver>) -> Self
Installs a dependency-free observer for sanitized request lifecycle events.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for S3ConfigBuilder
impl !UnwindSafe for S3ConfigBuilder
impl Freeze for S3ConfigBuilder
impl Send for S3ConfigBuilder
impl Sync for S3ConfigBuilder
impl Unpin for S3ConfigBuilder
impl UnsafeUnpin for S3ConfigBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more