fud_core/exec/request.rs
1use super::{OpRef, StateRef};
2use camino::Utf8PathBuf;
3
4/// A request to the Driver directing it what to build.
5#[derive(Debug)]
6pub struct Request {
7 /// The input format.
8 pub start_state: StateRef,
9
10 /// The output format to produce.
11 pub end_state: StateRef,
12
13 /// The filename to read the input from, or None to read from stdin.
14 pub start_file: Option<Utf8PathBuf>,
15
16 /// The filename to write the output to, or None to print to stdout.
17 pub end_file: Option<Utf8PathBuf>,
18
19 /// A sequence of operators to route the conversion through.
20 pub through: Vec<OpRef>,
21
22 /// The working directory for the build.
23 pub workdir: Utf8PathBuf,
24}