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 [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 [
ErrorKind::ConditionNotMatch]. - If the service does not support this condition, the operation returns
[
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 · 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
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 Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.