Skip to main content

processing_chain/processes/
mod.rs

1use std::path::PathBuf;
2
3use crate::items::Item;
4
5pub mod simple_process;
6pub mod json_process;
7
8/// The Process structure that assume single input/output paths for each Item.
9///
10#[derive(Debug, Default)]
11pub struct Process {
12    pub name: String,
13    pub inputs_dir_path: PathBuf,
14    pub inputs_extenion: String,
15    pub outputs_dir_path: PathBuf,
16    pub tmp_dir_path: Option<PathBuf>,
17    pub overwrite: bool,
18    pub items: Vec<Item>,
19}
20
21
22/// The Process structure that parse Items from a JSON file.
23///
24#[derive(Debug, Default)]
25pub struct JsonProcess {
26    pub name: String,
27    pub json_items: String,
28    pub tmp_dir_path: Option<PathBuf>,
29    pub overwrite: bool,
30    pub items: Vec<Item>,
31}