pub struct Change {
pub path: PathBuf,
pub before: Option<String>,
pub after: Option<String>,
pub through_links: bool,
pub backup: bool,
}Expand description
One file as it is and as it would be (None = absent).
Fields§
§path: PathBuf§before: Option<String>§after: Option<String>§through_links: boolSettings files are often symlinks into a dotfiles repo: write through them. An adapter file
symlinked into a borg checkout (README’s ln -s) is replaced instead, never written through.
backup: boolWhether apply keeps a backup of before. False only where borg can recreate it exactly: a
skill file removed because it was this borg’s own (install/skill.rs), whose backup would keep
the skill’s directory from ever being removed.
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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