Struct trycmd_indygreg_fork::schema::Step
source · 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: Env
Environment variables for the execution.
stdin: Option<Data>
Process stdin
stderr_to_stdout: bool
Whether 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: bool
Whether process output is binary (as opposed to text).
timeout: Option<Duration>
How long to wait for process to exit before timing out.
Trait Implementations§
source§impl PartialEq for Step
impl PartialEq for Step
impl Eq for Step
impl StructuralEq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.