pub struct PlannedFileOperation {
pub operation: FileOperationKind,
pub source: PathBuf,
pub target: PathBuf,
pub source_path: PathBuf,
pub target_path: PathBuf,
pub required: bool,
pub compare: Option<SyncCompare>,
pub delete: Option<bool>,
pub symlinks: Option<SymlinkMode>,
pub ignore_metadata: Vec<MetadataField>,
pub status: PlannedFileStatus,
pub declaration: SourceSpan,
}Expand description
A validated file operation ready for execution.
Fields§
§operation: FileOperationKindFile operation kind.
source: PathBufDeclared source path.
target: PathBufDeclared target path.
source_path: PathBufNormalized source path.
target_path: PathBufNormalized target path.
required: boolWhether a missing source should fail validation.
compare: Option<SyncCompare>Sync comparison mode.
delete: Option<bool>Whether sync should delete target-only files.
symlinks: Option<SymlinkMode>How copy and sync should treat source symlinks.
ignore_metadata: Vec<MetadataField>Metadata fields ignored by copy and sync.
status: PlannedFileStatusWhether this operation should execute.
declaration: SourceSpanSource location for the operation declaration.
Trait Implementations§
Source§impl Clone for PlannedFileOperation
impl Clone for PlannedFileOperation
Source§fn clone(&self) -> PlannedFileOperation
fn clone(&self) -> PlannedFileOperation
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 PlannedFileOperation
impl Debug for PlannedFileOperation
impl Eq for PlannedFileOperation
Source§impl PartialEq for PlannedFileOperation
impl PartialEq for PlannedFileOperation
Source§fn eq(&self, other: &PlannedFileOperation) -> bool
fn eq(&self, other: &PlannedFileOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlannedFileOperation
Auto Trait Implementations§
impl Freeze for PlannedFileOperation
impl RefUnwindSafe for PlannedFileOperation
impl Send for PlannedFileOperation
impl Sync for PlannedFileOperation
impl Unpin for PlannedFileOperation
impl UnsafeUnpin for PlannedFileOperation
impl UnwindSafe for PlannedFileOperation
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