pub struct FileWriteResult {
pub path: PathBuf,
pub written: bool,
pub backup_path: Option<PathBuf>,
pub action: String,
pub dry_run: bool,
}Expand description
Result of writing a single file
Fields§
§path: PathBufPath to the file that was written
written: boolWhether the file was actually written
backup_path: Option<PathBuf>Path to backup file if created
action: StringAction taken (e.g., “Written”, “Skipped”, “Merged”)
dry_run: boolWhether this was a dry-run
Trait Implementations§
Source§impl Clone for FileWriteResult
impl Clone for FileWriteResult
Source§fn clone(&self) -> FileWriteResult
fn clone(&self) -> FileWriteResult
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 moreAuto Trait Implementations§
impl Freeze for FileWriteResult
impl RefUnwindSafe for FileWriteResult
impl Send for FileWriteResult
impl Sync for FileWriteResult
impl Unpin for FileWriteResult
impl UnwindSafe for FileWriteResult
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