pub struct LinuxRenameRequest { /* private fields */ }Expand description
Native facts for one rename or move that preserves stable item identity.
Implementations§
Source§impl LinuxRenameRequest
impl LinuxRenameRequest
Sourcepub fn new(
key: CloudItemKey,
inode_generation: LinuxInodeGeneration,
kind: LinuxNodeKind,
old_parent_key: CloudItemKey,
old_name: impl Into<String>,
new_parent_key: CloudItemKey,
new_name: impl Into<String>,
destination: Option<LinuxRenameDestination>,
no_replace: bool,
session_generation: SessionGeneration,
) -> Result<Self>
pub fn new( key: CloudItemKey, inode_generation: LinuxInodeGeneration, kind: LinuxNodeKind, old_parent_key: CloudItemKey, old_name: impl Into<String>, new_parent_key: CloudItemKey, new_name: impl Into<String>, destination: Option<LinuxRenameDestination>, no_replace: bool, session_generation: SessionGeneration, ) -> Result<Self>
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
pub const fn key(&self) -> &CloudItemKey
pub const fn inode_generation(&self) -> LinuxInodeGeneration
pub const fn kind(&self) -> LinuxNodeKind
pub const fn old_parent_key(&self) -> &CloudItemKey
pub fn old_name(&self) -> &str
pub const fn new_parent_key(&self) -> &CloudItemKey
pub fn new_name(&self) -> &str
pub const fn destination(&self) -> Option<&LinuxRenameDestination>
pub const fn no_replace(&self) -> bool
pub const fn session_generation(&self) -> SessionGeneration
Trait Implementations§
Source§impl Clone for LinuxRenameRequest
impl Clone for LinuxRenameRequest
Source§fn clone(&self) -> LinuxRenameRequest
fn clone(&self) -> LinuxRenameRequest
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 LinuxRenameRequest
impl Debug for LinuxRenameRequest
Source§impl PartialEq for LinuxRenameRequest
impl PartialEq for LinuxRenameRequest
impl Eq for LinuxRenameRequest
impl StructuralPartialEq for LinuxRenameRequest
Auto Trait Implementations§
impl Freeze for LinuxRenameRequest
impl RefUnwindSafe for LinuxRenameRequest
impl Send for LinuxRenameRequest
impl Sync for LinuxRenameRequest
impl Unpin for LinuxRenameRequest
impl UnwindSafe for LinuxRenameRequest
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