pub struct CopyObject { /* private fields */ }Expand description
Copy an object
Copy within the same bucket is limited to 5GB; copying across buckets is limited to 1GB
There are many additional restrictions; see the Alibaba Cloud documentation for details
Implementations§
Source§impl CopyObject
impl CopyObject
Sourcepub fn set_storage_class(self, storage_class: StorageClass) -> Self
pub fn set_storage_class(self, storage_class: StorageClass) -> Self
Set the object’s storage class
Sourcepub fn set_meta(self, key: impl ToString, value: impl ToString) -> Self
pub fn set_meta(self, key: impl ToString, value: impl ToString) -> Self
Set additional metadata
Keys may only contain letters, numbers, and hyphens; metadata with other characters will be discarded
Sourcepub fn set_if_modified_since(self, if_modified_since: OffsetDateTime) -> Self
pub fn set_if_modified_since(self, if_modified_since: OffsetDateTime) -> Self
If the specified time is earlier than the file’s actual modification time, the copy proceeds.
Sourcepub fn set_if_unmodified_since(
self,
if_unmodified_since: OffsetDateTime,
) -> Self
pub fn set_if_unmodified_since( self, if_unmodified_since: OffsetDateTime, ) -> Self
If the specified time is equal to or later than the file’s actual modification time, the copy proceeds.
Sourcepub fn set_if_match(self, if_match: impl ToString) -> Self
pub fn set_if_match(self, if_match: impl ToString) -> Self
Copy the source object only if its ETag matches the value you provide.
The ETag is used to verify whether the data has changed; you can use it to check data integrity.
Sourcepub fn set_if_none_match(self, if_none_match: impl ToString) -> Self
pub fn set_if_none_match(self, if_none_match: impl ToString) -> Self
Copy the source object only if its ETag does not match the value you provide.
The ETag is used to verify whether the data has changed; you can use it to check data integrity.
Sourcepub fn forbid_overwrite(self) -> Self
pub fn forbid_overwrite(self) -> Self
Disallow overwriting files with the same name
Sourcepub fn set_tagging(self, key: impl ToString, value: impl ToString) -> Self
pub fn set_tagging(self, key: impl ToString, value: impl ToString) -> Self
Set tag information
Sourcepub fn set_metadata_directive(self) -> Self
pub fn set_metadata_directive(self) -> Self
Use the metadata specified in the request and ignore the source object’s metadata
Sourcepub fn set_tagging_directive(self) -> Self
pub fn set_tagging_directive(self) -> Self
Use the tags specified in the request and ignore the source object’s tags