pub struct ClientConfig {
pub client_config_location: ClientConfigLocation,
pub credential: S3Credentials,
pub region: Option<String>,
pub endpoint_url: Option<String>,
pub force_path_style: bool,
pub accelerate: bool,
pub request_payer: Option<RequestPayer>,
pub retry_config: RetryConfig,
pub cli_timeout_config: CLITimeoutConfig,
pub disable_stalled_stream_protection: bool,
pub request_checksum_calculation: RequestChecksumCalculation,
}Expand description
AWS S3 client configuration.
Reused from s3sync’s ClientConfig with credential loading, region configuration, endpoint setup, retry config, and timeout config.
Fields§
§client_config_location: ClientConfigLocation§credential: S3Credentials§region: Option<String>§endpoint_url: Option<String>§force_path_style: bool§accelerate: bool§request_payer: Option<RequestPayer>§retry_config: RetryConfig§cli_timeout_config: CLITimeoutConfig§disable_stalled_stream_protection: bool§request_checksum_calculation: RequestChecksumCalculationImplementations§
Source§impl ClientConfig
impl ClientConfig
pub async fn create_client(&self) -> Client
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate 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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.