Skip to main content

Module spec

Module spec 

Source
Expand description

The jev-1 question-spec intermediate representation.

The IR is what every downstream node consumes: P0.1b emits capnp from it, P1.1 linearizes it (via crate::serialize), P3.5 pins it in prepared statements. It is authored through crate::author (YAML/JSON) or constructed directly in Rust.

Structs§

ChoiceOption
One choice option: a name (its identity and its label) plus an optional rubric. None rubric = undescribed option (D3’s choice-side counterpart).
NoulCriteria
Noul criteria: free-form descriptions of what the true and false outcomes mean. Keys are literally "true"/"false" on the wire; both entries are optional.
QuestionSet
A parsed question-spec document: the questions map plus the optional shared state.
QuestionSpec
One runtime-declared question.

Enums§

QuestionBody
The per-kind payload of a question spec.
QuestionKind
Question type tags. Span/Derived are reserved for profile v2: recognized by the authoring layer (rejected with crate::error::SpecErrorKind::ReservedQuestionType) so that a v2 document fails loudly instead of being misread.