pub struct LoweredStep {
pub step: StepRef,
pub kind: StepKindId,
pub payload: StepPayload,
pub optional: bool,
pub when: Option<Guard>,
pub label: Option<String>,
pub fragment: Option<String>,
pub save_as: BTreeMap<String, String>,
}Expand description
One step after macro expansion and ${…} lowering — engine-agnostic.
Fields§
§step: StepRefAnchor to the authored feature line.
kind: StepKindIdWhich step kind (and therefore which engine) executes this step.
payload: StepPayloadThe engine-facing payload.
optional: booloptional: steps warn instead of failing (and segment the batch).
when: Option<Guard>Skip guard, when configured (resolved text; the runtime skips the step
per Guard::skips).
label: Option<String>Pack-step entry label (events/console), when authored.
fragment: Option<String>The fragment this step executes, qualified as file.hurl#name
(ADR-0018); None for an inline hurl: block.
Qualified rather than bare because this is what a reader of a run
record needs: ADR-0018 accepted “a test spans three files” as a cost on
the condition that tooling earn it back, and a bare admin.search
still leaves you grepping for the file it lives in. The file#name
spelling is the one ref: itself accepts, so what a record prints can
be pasted straight back into a pack.
save_as: BTreeMap<String, String>saveAs: promotions: capture name → global (ADR-0005).
Trait Implementations§
Source§impl Clone for LoweredStep
impl Clone for LoweredStep
Source§fn clone(&self) -> LoweredStep
fn clone(&self) -> LoweredStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more