pub struct InitUpload { /* private fields */ }Expand description
Initiate a multipart upload
See the Alibaba Cloud documentation for details
Implementations§
Source§impl InitUpload
impl InitUpload
Sourcepub fn set_mime(self, mime: impl ToString) -> Self
pub fn set_mime(self, mime: impl ToString) -> Self
Set the file’s MIME type
If no MIME type is set, the default (application/octet-stream) is used
Sourcepub fn set_storage_class(self, storage_class: StorageClass) -> Self
pub fn set_storage_class(self, storage_class: StorageClass) -> Self
Set the file’s storage class
Sourcepub fn set_cache_control(self, cache_control: CacheControl) -> Self
pub fn set_cache_control(self, cache_control: CacheControl) -> Self
Cache behavior of the webpage when the file is downloaded
Sourcepub fn set_content_disposition(
self,
content_disposition: ContentDisposition,
) -> Self
pub fn set_content_disposition( self, content_disposition: ContentDisposition, ) -> Self
Set how the file is presented
Sourcepub fn forbid_overwrite(self) -> Self
pub fn forbid_overwrite(self) -> Self
Disallow overwriting files with the same name
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_tagging(self, key: impl ToString, value: impl ToString) -> Self
pub fn set_tagging(self, key: impl ToString, value: impl ToString) -> Self
Set tag information
Auto Trait Implementations§
impl Freeze for InitUpload
impl !RefUnwindSafe for InitUpload
impl Send for InitUpload
impl Sync for InitUpload
impl Unpin for InitUpload
impl !UnwindSafe for InitUpload
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