pub struct Search<'a> {
pub repo: &'a Path,
pub prefix: &'a str,
pub feature: &'a str,
pub task: &'a str,
pub files: &'a [(String, String)],
pub argv: &'a [String],
pub scratch: &'a Path,
pub sandbox: &'a Config,
pub timeout: Duration,
}Expand description
What the search needs.
Fields§
§repo: &'a PathThe feature worktree (its HEAD is the branch before this tick).
prefix: &'a strThe spec project’s directory inside it ("" at the root).
feature: &'a strThe feature: its ticks carry Spec-Task: <feature>/….
task: &'a strThe task searched for (names its scratch directory).
files: &'a [(String, String)]The acceptance files (project-relative) and their contents.
argv: &'a [String]The command that runs only the task’s own tests (a section’s, when the story’s file was appended to).
scratch: &'a PathWhere scratch worktrees go (<state>/tmp).
sandbox: &'a ConfigThe sandbox configuration the runs are confined by.
timeout: DurationThe deadline of one run (the checks’).
Auto Trait Implementations§
impl<'a> Freeze for Search<'a>
impl<'a> RefUnwindSafe for Search<'a>
impl<'a> Send for Search<'a>
impl<'a> Sync for Search<'a>
impl<'a> Unpin for Search<'a>
impl<'a> UnsafeUnpin for Search<'a>
impl<'a> UnwindSafe for Search<'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