pub struct OpRename { /* private fields */ }Expand description
Arguments for rename operation.
Implementations§
Source§impl OpRename
impl OpRename
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 whether the rename should fail when the destination already exists.
If true, the rename succeeds only when the destination does not exist.
If false, the rename uses OpenDAL’s default overwrite behavior.
§Service Implementation
Check [Capability::rename_with_if_not_exists] before setting this to
true. A service might return ErrorKind::Unsupported if it cannot
enforce the condition.
Sourcepub fn if_not_exists(&self) -> bool
pub fn if_not_exists(&self) -> bool
Return whether the rename should fail when the destination already exists.
Trait Implementations§
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.
Auto Trait Implementations§
impl Freeze for OpRename
impl RefUnwindSafe for OpRename
impl Send for OpRename
impl Sync for OpRename
impl Unpin for OpRename
impl UnsafeUnpin for OpRename
impl UnwindSafe for OpRename
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