pub struct RecordOptions<'a> {
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 float_tolerance: Option<f64>,
}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}.
float_tolerance: Option<f64>Numbers in the output match within this tolerance; kept from the last recording when
None, removed with 0.
Auto Trait Implementations§
impl<'a> Forget for RecordOptions<'a>
impl<'a> Freeze for RecordOptions<'a>
impl<'a> Move for RecordOptions<'a>
impl<'a> RefUnwindSafe for RecordOptions<'a>
impl<'a> Send for RecordOptions<'a>
impl<'a> Sync for RecordOptions<'a>
impl<'a> Unpin for RecordOptions<'a>
impl<'a> UnsafeUnpin for RecordOptions<'a>
impl<'a> UnwindSafe for RecordOptions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more