pub struct CopyOptions {
pub behavior: DestinationBehavior,
pub commit: CommitOptions,
pub expected_destination_inode_id: Option<InodeId>,
pub expected_destination_revision_no: Option<RevisionNo>,
}Expand description
Options for copying a file path.
Fields§
§behavior: DestinationBehaviorCreate-only or replace-existing behavior for the destination.
commit: CommitOptionsActor, commit ID, and message.
expected_destination_inode_id: Option<InodeId>The inode that the destination must still reference when using Replace behavior.
expected_destination_revision_no: Option<RevisionNo>The revision that must still be current when using Replace behavior with
expected_destination_inode_id.
Implementations§
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
Source§impl Debug for CopyOptions
impl Debug for CopyOptions
impl Eq for CopyOptions
Source§impl PartialEq for CopyOptions
impl PartialEq for CopyOptions
impl StructuralPartialEq for CopyOptions
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnsafeUnpin for CopyOptions
impl UnwindSafe for CopyOptions
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