pub struct StepKindSpec {
pub prefix: &'static str,
pub schema: &'static str,
pub validate: Option<PayloadValidator>,
}Expand description
An engine’s claim on a pack step kind: the key prefix (hurl, web, …) 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.
Trait Implementations§
Source§impl Clone for StepKindSpec
impl Clone for StepKindSpec
Source§fn clone(&self) -> StepKindSpec
fn clone(&self) -> StepKindSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StepKindSpec
Auto Trait Implementations§
impl Freeze for StepKindSpec
impl RefUnwindSafe for StepKindSpec
impl Send for StepKindSpec
impl Sync for StepKindSpec
impl Unpin for StepKindSpec
impl UnsafeUnpin for StepKindSpec
impl UnwindSafe for StepKindSpec
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