1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Trainer's output.

use std::path::PathBuf;

use crate::prelude::*;

/// The output structure.
#[derive(Debug, Serialize, Deserialize)]
pub struct Output {
    /// The name of the output.
    pub name: String,
    /// The directory to save the output to.
    pub directory: PathBuf
}

impl Output {
    /// Create a new output structure.
    pub fn new(name: impl Into<String>, directory: impl Into<PathBuf>) -> Self {
        let name = name.into();
        let directory = directory.into();
        Output { name, directory }
    }
}