pub struct CopyTemplate {
pub from: PathBuf,
pub from_modified: SystemTime,
pub to: PathBuf,
pub to_exists: bool,
}
Expand description
The configuration for a unit to copy a single file.
Fields§
§from: PathBuf
The source file.
from_modified: SystemTime
Source file modification time.
to: PathBuf
The destination file.
to_exists: bool
If the destination file exists, we assume that its content is the same.
Trait Implementations§
Source§impl Debug for CopyTemplate
impl Debug for CopyTemplate
Source§impl Display for CopyTemplate
impl Display for CopyTemplate
Source§impl From<CopyTemplate> for Unit
impl From<CopyTemplate> for Unit
Source§fn from(value: CopyTemplate) -> Unit
fn from(value: CopyTemplate) -> Unit
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CopyTemplate
impl RefUnwindSafe for CopyTemplate
impl Send for CopyTemplate
impl Sync for CopyTemplate
impl Unpin for CopyTemplate
impl UnwindSafe for CopyTemplate
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