pub struct RecordOptions<'a> {Show 15 fields
pub repo: &'a Path,
pub run: &'a [String],
pub inputs: Option<&'a Path>,
pub normalize: &'a [String],
pub name: Option<&'a str>,
pub traps: bool,
pub timeout_secs: Option<u64>,
pub http: bool,
pub port: Option<u16>,
pub server_args: &'a [String],
pub fresh: &'a [String],
pub pace_ms: Option<u64>,
pub float_tolerance: Option<f64>,
pub float_files: &'a [String],
pub effects: Option<EffectsConfig>,
}Fields§
§repo: &'a Path§run: &'a [String]The command that runs the original; taken from the saved config when empty.
inputs: Option<&'a Path>§normalize: &'a [String]Built-in normalizer names, or name=regex for your own.
name: Option<&'a str>§traps: bool§timeout_secs: Option<u64>§http: boolThe app is a server: record requests instead of command lines.
port: Option<u16>The port a server always listens on (implies http); unset, it gets a free one through
PORT and {port}.
server_args: &'a [String]Servers: arguments every start gets after its command, the original’s and every build’s
(implies http); kept from the last recording when empty.
fresh: &'a [String]Servers: repository files or folders copied into a fresh working directory before every
start (implies http); kept from the last recording when empty.
pace_ms: Option<u64>Servers: milliseconds to wait after each response, for work the server does after
answering (a file watcher, a write-behind); kept from the last recording when None.
float_tolerance: Option<f64>Numbers in the output match within this tolerance; kept from the last recording when
None, removed with 0.
float_files: &'a [String]Written files of raw floats, path=f32le or path=f64le; kept from the last recording
when empty.
effects: Option<EffectsConfig>