pub struct Fixture {
pub setup: String,
pub cleanup: Option<String>,
pub workdir: String,
pub strip_env: Vec<String>,
}Expand description
How to stand up and tear down a realistic fixture per trial.
The runner executes setup before every trial so state is isolated.
cleanup runs after, best-effort.
Fields§
§setup: StringShell command (path or inline) that prepares workdir.
cleanup: Option<String>Optional teardown command.
workdir: StringWorking directory the agent operates in.
strip_env: Vec<String>Environment variables to strip from the agent and fixture processes before they spawn. Use this for any subject-tool variable whose value in the caller’s shell would contaminate trials (session ids, data-dir overrides, auth tokens, etc.). Exact names only; no globbing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fixture
impl<'de> Deserialize<'de> for Fixture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Fixture
impl RefUnwindSafe for Fixture
impl Send for Fixture
impl Sync for Fixture
impl Unpin for Fixture
impl UnsafeUnpin for Fixture
impl UnwindSafe for Fixture
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