pub struct FileGenerator { /* private fields */ }Implementations§
Source§impl FileGenerator
 
impl FileGenerator
pub fn new(output_dir: impl Into<PathBuf>) -> Self
pub fn new_dry_run(output_dir: impl Into<PathBuf>) -> Self
pub async fn generate_files( &self, template: ProcessedTemplate, progress_callback: Option<ProgressCallback>, ) -> EngineResult<GenerationResult>
pub async fn check_output_directory(&self) -> EngineResult<DirectoryStatus>
pub async fn clean_output_directory(&self) -> EngineResult<()>
pub fn output_directory(&self) -> &Path
pub fn is_dry_run(&self) -> bool
Auto Trait Implementations§
impl Freeze for FileGenerator
impl RefUnwindSafe for FileGenerator
impl Send for FileGenerator
impl Sync for FileGenerator
impl Unpin for FileGenerator
impl UnwindSafe for FileGenerator
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