pub struct FileSystem {
pub source_dir: PathBuf,
pub target_dir: PathBuf,
pub template_engine: Template,
}Fields§
§source_dir: PathBuf§target_dir: PathBuf§template_engine: TemplateImplementations§
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
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 FileSystem
impl Debug for FileSystem
Source§impl Default for FileSystem
impl Default for FileSystem
Source§fn default() -> FileSystem
fn default() -> FileSystem
Returns the “default value” for a type. Read more
Source§impl Executer for FileSystem
impl Executer for FileSystem
Source§fn copy_file(&self, path: &Path) -> Result<PathBuf>
fn copy_file(&self, path: &Path) -> Result<PathBuf>
Copies a single file from the specified path. Read more
Source§fn create_file(&self, path: &Path, content: String) -> Result<PathBuf>
fn create_file(&self, path: &Path, content: String) -> Result<PathBuf>
Copies a single file from the specified path. Read more
Source§fn copy_dir(&self, directory_path: &Path) -> Result<()>
fn copy_dir(&self, directory_path: &Path) -> Result<()>
Copies an entire directory from the specified path. Read more
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnsafeUnpin for FileSystem
impl UnwindSafe for FileSystem
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