Trait modelator::artifact::ArtifactSaver[][src]

pub trait ArtifactSaver: Artifact {
    fn filename(&self) -> String;

    fn try_write_to_dir(&self, path: &Path) -> Result<PathBuf, Error> { ... }
}
Expand description

An artifact which is a file It can be saved in a directory, as it has its own filename

Required methods

Returns filename

Provided methods

Tries to save the contents to directory using the file name

Implementors