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

#691 in Text processing

Download history 31/week @ 2024-11-13 20/week @ 2024-11-20 14/week @ 2024-11-27 36/week @ 2024-12-04 35/week @ 2024-12-11 17/week @ 2024-12-18 3/week @ 2025-01-29 18/week @ 2025-02-05 13/week @ 2025-02-12 10/week @ 2025-02-19 16/week @ 2025-02-26

58 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–1MB
~24K SLoC