pub struct OpCopy { /* private fields */ }Expand description
Args for copy operation.
Implementations§
Source§impl OpCopy
impl OpCopy
Sourcepub fn with_if_not_exists(self, if_not_exists: bool) -> Self
pub fn with_if_not_exists(self, if_not_exists: bool) -> Self
Set the if_not_exists flag for the operation.
When set to true, the copy operation will only proceed if the destination doesn’t already exist.
Sourcepub fn if_not_exists(&self) -> bool
pub fn if_not_exists(&self) -> bool
Get if_not_exists flag.
Sourcepub fn with_if_match(self, if_match: impl Into<String>) -> Self
pub fn with_if_match(self, if_match: impl Into<String>) -> Self
Set the if_match condition for the operation.
When set, the copy operation will only proceed if the existing destination object’s ETag matches the given value.
Sourcepub fn with_source_version(self, version: impl Into<String>) -> Self
pub fn with_source_version(self, version: impl Into<String>) -> Self
Set source version for the operation.
When set, the copy operation will copy from the specified source version.
Sourcepub fn source_version(&self) -> Option<&str>
pub fn source_version(&self) -> Option<&str>
Get source version from the operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpCopy
impl RefUnwindSafe for OpCopy
impl Send for OpCopy
impl Sync for OpCopy
impl Unpin for OpCopy
impl UnsafeUnpin for OpCopy
impl UnwindSafe for OpCopy
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