pub struct RenameOptions {
pub if_not_exists: bool,
}Expand description
Options for rename operations.
The condition checks the destination file, never the source. A missing
source fails the rename with crate::ErrorKind::NotFound; when a
condition error applies at the same time, which error the rename returns
is unspecified.
See the conditional operation specification for the complete cross-operation contract.
Fields§
§if_not_exists: boolRename only when no file exists at the destination path.
The condition succeeds when the destination path is empty. An
existing destination file fails the rename with
crate::ErrorKind::ConditionNotMatch.
The operation returns crate::ErrorKind::Unsupported when the
service does not advertise
crate::Capability::rename_with_if_not_exists.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.