Trait modelator::artifact::Artifact[][src]

pub trait Artifact {
    fn as_string(&self) -> String;

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

A wrapper around a file NOTE: for now this is bare-bones but it will eventually include additional meta-data which will justify the additional interface.

Required methods

Returns a string representation.

Provided methods

Tries to write the contents to path using the result of as_string.

Implementors