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,
pub worktree: &'a Config,
pub checkout: &'a Path,
pub state: Option<&'a Path>,
}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’).
worktree: &'a Config[worktree]: each scratch tree gets its copied files and dependency
folders as the feature’s worktree does.
checkout: &'a PathThe project’s directory in the person’s checkout (what include copies from).
state: Option<&'a Path>speccoder’s state directory (the cache speccoder new filled).
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more