pub struct Step {Show 14 fields
pub id: Option<String>,
pub bin: Option<Bin>,
pub args: Vec<String>,
pub env: Env,
pub stdin: Option<Data>,
pub stderr_to_stdout: bool,
pub expected_status_source: Option<usize>,
pub expected_status: Option<CommandStatus>,
pub expected_stdout_source: Option<Range<usize>>,
pub expected_stdout: Option<Data>,
pub expected_stderr_source: Option<Range<usize>>,
pub expected_stderr: Option<Data>,
pub binary: bool,
pub timeout: Option<Duration>,
}Expand description
A command invocation and its expected result.
Fields§
§id: Option<String>Uniquely identifies this step from others.
bin: Option<Bin>The program that will be executed.
args: Vec<String>Arguments to the executed program.
env: EnvEnvironment variables for the execution.
stdin: Option<Data>Process stdin
stderr_to_stdout: boolWhether to redirect stderr to stdout.
expected_status_source: Option<usize>§expected_status: Option<CommandStatus>Expected command status result.
expected_stdout_source: Option<Range<usize>>§expected_stdout: Option<Data>Expected process stdout content.
expected_stderr_source: Option<Range<usize>>§expected_stderr: Option<Data>Expected process stderr content.
binary: boolWhether process output is binary (as opposed to text).
timeout: Option<Duration>How long to wait for process to exit before timing out.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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