Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 55 fields pub source: StoragePath, pub target: StoragePath, pub show_progress: bool, pub source_client_config: Option<ClientConfig>, pub target_client_config: Option<ClientConfig>, pub tracing_config: Option<TracingConfig>, pub transfer_config: TransferConfig, pub disable_tagging: bool, pub server_side_copy: bool, pub no_guess_mime_type: bool, pub disable_multipart_verify: bool, pub disable_etag_verify: bool, pub disable_additional_checksum_verify: bool, pub storage_class: Option<StorageClass>, pub sse: Option<ServerSideEncryption>, pub sse_kms_key_id: SseKmsKeyId, pub source_sse_c: Option<String>, pub source_sse_c_key: SseCustomerKey, pub source_sse_c_key_md5: Option<String>, pub target_sse_c: Option<String>, pub target_sse_c_key: SseCustomerKey, pub target_sse_c_key_md5: Option<String>, pub canned_acl: Option<ObjectCannedAcl>, pub additional_checksum_mode: Option<ChecksumMode>, pub additional_checksum_algorithm: Option<ChecksumAlgorithm>, pub cache_control: Option<String>, pub content_disposition: Option<String>, pub content_encoding: Option<String>, pub content_language: Option<String>, pub content_type: Option<String>, pub expires: Option<DateTime<Utc>>, pub metadata: Option<HashMap<String, String>>, pub no_sync_system_metadata: bool, pub no_sync_user_defined_metadata: bool, pub website_redirect: Option<String>, pub tagging: Option<String>, pub put_last_modified_metadata: bool, pub disable_payload_signing: bool, pub disable_content_md5_header: bool, pub full_object_checksum: bool, pub source_accelerate: bool, pub target_accelerate: bool, pub source_request_payer: bool, pub target_request_payer: bool, pub if_none_match: bool, pub disable_stalled_stream_protection: bool, pub disable_express_one_zone_additional_checksum: bool, pub max_parallel_uploads: u16, pub rate_limit_bandwidth: Option<u64>, pub version_id: Option<String>, pub is_stdio_source: bool, pub is_stdio_target: bool, pub no_fail_on_verify_error: bool, pub skip_existing: bool, pub dry_run: bool,
}

Fields§

§source: StoragePath§target: StoragePath§show_progress: bool§source_client_config: Option<ClientConfig>§target_client_config: Option<ClientConfig>§tracing_config: Option<TracingConfig>§transfer_config: TransferConfig§disable_tagging: bool§server_side_copy: bool§no_guess_mime_type: bool§disable_multipart_verify: bool§disable_etag_verify: bool§disable_additional_checksum_verify: bool§storage_class: Option<StorageClass>§sse: Option<ServerSideEncryption>§sse_kms_key_id: SseKmsKeyId§source_sse_c: Option<String>§source_sse_c_key: SseCustomerKey§source_sse_c_key_md5: Option<String>§target_sse_c: Option<String>§target_sse_c_key: SseCustomerKey§target_sse_c_key_md5: Option<String>§canned_acl: Option<ObjectCannedAcl>§additional_checksum_mode: Option<ChecksumMode>§additional_checksum_algorithm: Option<ChecksumAlgorithm>§cache_control: Option<String>§content_disposition: Option<String>§content_encoding: Option<String>§content_language: Option<String>§content_type: Option<String>§expires: Option<DateTime<Utc>>§metadata: Option<HashMap<String, String>>§no_sync_system_metadata: bool§no_sync_user_defined_metadata: bool§website_redirect: Option<String>§tagging: Option<String>§put_last_modified_metadata: bool§disable_payload_signing: bool§disable_content_md5_header: bool§full_object_checksum: bool§source_accelerate: bool§target_accelerate: bool§source_request_payer: bool§target_request_payer: bool§if_none_match: bool§disable_stalled_stream_protection: bool§disable_express_one_zone_additional_checksum: bool§max_parallel_uploads: u16§rate_limit_bandwidth: Option<u64>§version_id: Option<String>§is_stdio_source: bool§is_stdio_target: bool§no_fail_on_verify_error: bool§skip_existing: bool§dry_run: bool

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<CpArgs> for Config

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: CpArgs) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<MvArgs> for Config

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: MvArgs) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more