pub struct FileOperationOptions {
pub cwd: Option<PathBuf>,
pub root: Option<PathBuf>,
pub operation: FileOperationKind,
pub sources: Vec<PathBuf>,
pub target: Option<PathBuf>,
pub required: bool,
pub symlinks: Option<SymlinkMode>,
pub compare: Option<SyncCompare>,
pub delete: Option<bool>,
pub strict: bool,
pub force: bool,
pub dry_run: bool,
}Expand description
Options for running one manual file operation command.
Fields§
§cwd: Option<PathBuf>Directory from which the operation starts. Defaults to the process cwd.
root: Option<PathBuf>Overrides the root checkout used as the source base.
operation: FileOperationKindFile operation kind to run.
sources: Vec<PathBuf>Source paths resolved from the root checkout.
target: Option<PathBuf>Optional target path resolved from the current worktree.
required: boolFails when a source is missing.
symlinks: Option<SymlinkMode>How copy and sync should treat source symlinks.
compare: Option<SyncCompare>Sync comparison mode.
delete: Option<bool>Whether sync should delete target-only files.
strict: boolFails on stricter file-operation conflicts.
force: boolReplaces existing file-operation targets where supported.
dry_run: boolPrints planned work without changing files.
Trait Implementations§
Source§impl Clone for FileOperationOptions
impl Clone for FileOperationOptions
Source§fn clone(&self) -> FileOperationOptions
fn clone(&self) -> FileOperationOptions
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 FileOperationOptions
impl Debug for FileOperationOptions
Source§impl Default for FileOperationOptions
impl Default for FileOperationOptions
impl Eq for FileOperationOptions
Source§impl PartialEq for FileOperationOptions
impl PartialEq for FileOperationOptions
Source§fn eq(&self, other: &FileOperationOptions) -> bool
fn eq(&self, other: &FileOperationOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileOperationOptions
Auto Trait Implementations§
impl Freeze for FileOperationOptions
impl RefUnwindSafe for FileOperationOptions
impl Send for FileOperationOptions
impl Sync for FileOperationOptions
impl Unpin for FileOperationOptions
impl UnsafeUnpin for FileOperationOptions
impl UnwindSafe for FileOperationOptions
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