Skip to main content

Module draft

Module draft 

Source
Expand description

A question as it is being typed, before it becomes a request.

A draft keeps the text of every field, not only the ones its current kind uses. Switching a question from choice to score and back has to leave the options you typed where they were — losing them because a radio button moved is the kind of small betrayal that makes a form annoying to use.

Structs§

QuestionDraft

Enums§

Kind
ParsedLevels
What the levels field means, before it becomes an SDK type.

Functions§

parse_levels
parse_levels_raw
Read the levels field: a bare number is a count, anything else is a list of level texts.
split_list
Split a comma-separated field into trimmed, non-empty entries.