pub struct StepKindSpec {
pub prefix: &'static str,
pub schema: &'static str,
pub validate: Option<PayloadValidator>,
pub fragments: Option<FragmentSupport>,
}Expand description
An engine’s claim on a pack step kind: the key prefix (hurl; other
prefixes reserved — ADR-0002 errata) plus the
JSON-Schema fragment describing that step’s payload, merged into proef schema
output (TECH-SPEC §6), and an optional static payload validator used by pack
validation pass 7 (probe-instantiation parse — TECH-SPEC §4.1).
Fields§
§prefix: &'static strStep-kind prefix as written in packs (without the trailing :).
schema: &'static strJSON-Schema fragment for the step payload ("true" = any, until refined).
validate: Option<PayloadValidator>Probe-validate a lowered payload text (None = no static validation).
Keeps the core engine-agnostic: the hurl parser stays behind the seam.
fragments: Option<FragmentSupport>Fragment support, or None when the kind has no fragment form
(ADR-0018). One Option rather than a separate extension and scanner,
so the two can never disagree: a kind that claims .http files but
cannot read them is not expressible.
Trait Implementations§
Source§impl Clone for StepKindSpec
impl Clone for StepKindSpec
Source§fn clone(&self) -> StepKindSpec
fn clone(&self) -> StepKindSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more