pub struct CopyToPart { /* private fields */ }Expand description
Initialize a multipart upload part
See the Alibaba Cloud documentation for details
Implementations§
Source§impl CopyToPart
impl CopyToPart
Sourcepub fn set_source_range(self, start: usize, end: Option<usize>) -> Self
pub fn set_source_range(self, start: usize, end: Option<usize>) -> Self
Set the source file copy range
By default, the entire file is copied; byte indexing starts at 0
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 file 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 file 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.
Auto Trait Implementations§
impl Freeze for CopyToPart
impl !RefUnwindSafe for CopyToPart
impl Send for CopyToPart
impl Sync for CopyToPart
impl Unpin for CopyToPart
impl !UnwindSafe for CopyToPart
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