10 releases

0.3.10 Oct 1, 2024
0.3.9 Sep 29, 2024
0.3.7 Aug 30, 2024
0.3.5 May 15, 2024
0.1.1 Sep 20, 2023

#1078 in Text processing

Download history 117/week @ 2024-08-23 223/week @ 2024-08-30 102/week @ 2024-09-06 83/week @ 2024-09-13 42/week @ 2024-09-20 348/week @ 2024-09-27 68/week @ 2024-10-04 34/week @ 2024-10-11 42/week @ 2024-10-18 21/week @ 2024-10-25 23/week @ 2024-11-01 41/week @ 2024-11-08 34/week @ 2024-11-15 12/week @ 2024-11-22 7/week @ 2024-11-29

99 downloads per month
Used in 2 crates

MIT/Apache

12KB
168 lines

The schema for questions used in mdbook-quiz. Intended to be deserialized from a TOML file. See Quiz as the top-level type. Here is an example of a quiz:

[[questions]]
id = "b230bed3-d6ba-4048-8b06-aa655d837b04"
type = "MultipleChoice"
prompt.prompt = "What is 1 + 1?"
prompt.distractors = ["1", "3", "**infinity**"]
answer.answer = ["2"]
context = """
Consult your local mathematician for details.
""""

Note that all Rust identifiers with multiple words (e.g. does_compile) use camelCase keys, so should be written as doesCompile in the TOML.

Dependencies

~0.3–1.1MB
~25K SLoC