pub fn new(root: PathBuf) -> Result<Self, Error> {
        let reporter = Box::new(DirectoryReporter::new(root)?);
        let artifact_wrapper =
            Box::new(|_type: &ArtifactType, artifact: Box<DynArtifact>| artifact);
        Ok(Self { reporter, artifact_wrapper })
    }
/// Create a `RunReporter` that saves artifacts and results to the given directory.
Create a `RunReporter` that saves artifacts and results to the given directory.
Create a ` RunReporter ` that saves artifacts and results to the given directory .
pub fn new(root: PathBuf) -> Result<Self, Error> {
        let reporter = Box::new(DirectoryReporter::new(root)?);
        let artifact_wrapper =
            Box::new(|_type: &ArtifactType, artifact: Box<DynArtifact>| artifact);
        Ok(Self { reporter, artifact_wrapper })
    }
pub fn new ( root : PathBuf ) -> Result < Self , Error > { let reporter = Box :: new ( DirectoryReporter :: new ( root ) ? ) ; let artifact_wrapper = Box :: new ( | _type : & ArtifactType , artifact : Box < DynArtifact > | artifact ) ; Ok ( Self { reporter , artifact_wrapper } ) }
Create a `RunReporter` that saves artifacts and results to the given directory.
Create a ` RunReporter ` that saves artifacts and results to the given directory .
root
PathBuf
root
PathBuf