pub struct RenameOptions {
pub if_not_exists: bool,
}Expand description
Options for rename operations.
Fields§
§if_not_exists: boolSets the condition that rename operation will succeed only if target does not exist.
§Capability
Check crate::Capability::rename_with_if_not_exists before using this feature.
§Behavior
- If the target does not exist, the rename operation succeeds.
- If the target exists, the operation returns
crate::ErrorKind::ConditionNotMatch. - If the service does not support this condition, the operation returns
crate::ErrorKind::Unsupported.
Trait Implementations§
Source§impl Clone for RenameOptions
impl Clone for RenameOptions
Source§fn clone(&self) -> RenameOptions
fn clone(&self) -> RenameOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenameOptions
impl Debug for RenameOptions
Source§impl Default for RenameOptions
impl Default for RenameOptions
Source§fn default() -> RenameOptions
fn default() -> RenameOptions
Returns the “default value” for a type. Read more
impl Eq for RenameOptions
Source§impl From<RenameOptions> for OpRename
impl From<RenameOptions> for OpRename
Source§fn from(value: RenameOptions) -> Self
fn from(value: RenameOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RenameOptions
impl PartialEq for RenameOptions
impl StructuralPartialEq for RenameOptions
Auto Trait Implementations§
impl Freeze for RenameOptions
impl RefUnwindSafe for RenameOptions
impl Send for RenameOptions
impl Sync for RenameOptions
impl Unpin for RenameOptions
impl UnsafeUnpin for RenameOptions
impl UnwindSafe for RenameOptions
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