write_metadata

Function write_metadata 

Source
pub fn write_metadata(output_path: &Path, model_path: &Path) -> Result<()>
Expand description

Write metadata to metadata.toml in the given output directory.

§Arguments

  • output_path - Directory where metadata.toml will be written.
  • model_path - Path to the model that was executed (recorded in the metadata).

§Errors

Returns an error if serializing the metadata or writing the file fails.