Expand description
The thing you are building in the REPL: a state, some named questions, a model.
Structs§
- Session
- Everything the next
:askwill send.
Functions§
- from_
body - Rebuild a session from a saved request body (
:open), keeping typed questions where thetypeis one this SDK models. - parse_
choice name instructions | label=description | bare_label | …- parse_
noul name instructions [| yes: ...] [| no: ...]- parse_
raw name {json}— a hand-built question object, likeQuestion::Raw.- parse_
score name instructions | level | level | …- question_
from_ json - Map a wire question back to a typed one; anything unfamiliar stays
Question::Raw. - value
- Instructions, descriptions and levels accept any JSON, so
{…}/[…]is parsed as such and anything else is sent as a plain string.
Type Aliases§
- Entry
- A question under construction, kept in the order it was added (answers come back in that order).