pub fn copy_plan(&self, original_plan: PlanFile, date: NaiveDate) -> anyhow::Result<PlanFile> {
        let path = self.get_plan_path(date);

        log::debug!(
            "Creating a copy of plan file `{:#?}` for date `{:#?}`",
            original_plan.path,
            date
        );
        original_plan.create_copy(path, date)
    }
/// Creates a clean copy of the provided plan file, and sets the date.
Creates a clean copy of the provided plan file, and sets the date.
Creates a clean copy of the provided plan file and sets the date .
pub fn copy_plan(&self, original_plan: PlanFile, date: NaiveDate) -> anyhow::Result<PlanFile> {
        let path = self.get_plan_path(date);
        log::debug!(
            "Creating a copy of plan file `{:#?}` for date `{:#?}`",
            original_plan.path,
            date
        );
        original_plan.create_copy(path, date)
    }
pub fn copy_plan ( & self , original_plan : PlanFile , date : NaiveDate ) -> anyhow :: Result < PlanFile > { let path = self . get_plan_path ( date ) ; log :: debug ! ( " " original_plan path date ) ; original_plan . create_copy ( path , date ) }
Creates a clean copy of the provided plan file, and sets the date.
Creates a clean copy of the provided plan file and sets the date .
&self
original_plan
PlanFile
date
NaiveDate
&self
original_plan
PlanFile
date
NaiveDate