pub struct CopySource { /* private fields */ }Expand description
A source object definition for copy_object and upload_part_copy method.
Implementations§
Source§impl CopySource
impl CopySource
pub fn new<T1: Into<String>, T2: Into<String>>( bucket_name: T1, object_name: T2, ) -> Self
Sourcepub fn range(self, offset: usize, length: usize) -> Self
pub fn range(self, offset: usize, length: usize) -> Self
Used only in upload_part_copy method.
Note: length must be greater than 0, or both length and offset are 0.
Sourcepub fn metadata_replace(self, metadata_replace: bool) -> Self
pub fn metadata_replace(self, metadata_replace: bool) -> Self
When copying an object, preserve all metadata if set false (default) or specify new metadata.
Sourcepub fn version_id<T: Into<String>>(self, version_id: T) -> Self
pub fn version_id<T: Into<String>>(self, version_id: T) -> Self
Set version-ID of the object
Sourcepub fn ssec(self, ssec: &SseCustomerKey) -> Self
pub fn ssec(self, ssec: &SseCustomerKey) -> Self
Set server-side encryption customer key
pub fn match_etag(self, match_etag: Option<String>) -> Self
pub fn not_match_etag(self, not_match_etag: Option<String>) -> Self
pub fn modified_since(self, modified_since: Option<String>) -> Self
pub fn unmodified_since(self, unmodified_since: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for CopySource
impl Clone for CopySource
Source§fn clone(&self) -> CopySource
fn clone(&self) -> CopySource
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 CopySource
impl RefUnwindSafe for CopySource
impl Send for CopySource
impl Sync for CopySource
impl Unpin for CopySource
impl UnwindSafe for CopySource
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