Skip to main content

Module exercise

Module exercise 

Source
Expand description

The exercise tools: get_exercise and patch_exercise read and edit an exercise’s name, own deadline, task instructions and review instructions, and list_exercises lists a course’s exercises. Everything else of an exercise is read-only for agents.

Re-exports§

pub use get::GetExercise;
pub use list::ListExercises;
pub use patch::PatchExercise;

Modules§

get 🔒
get_exercise: an exercise’s facts and reads of its instructions and task specs.
list 🔒
list_exercises: every exercise of a course, chapter or page with the facts course-wide checks compare, without reading each exercise.
patch 🔒
patch_exercise: edits of an exercise’s name, own deadline, instructions and review config.
paths 🔒
Exercise paths: /tasks/<task id>/... and /review_instructions/..., and the page-content paths of the instructions they lead into.
review_config 🔒
Checking a patch_exercise call’s review config choice, and what switching drops.
specs 🔒
Reading a task’s specs through get_exercise: /tasks/<task id>/specs[/<kind>[/<pointer>]].

Structs§

ExerciseDeadline 🔒
An exercise’s own deadline and the one that applies to it, its chapter’s without an own one.

Constants§

REVIEW_INSTRUCTIONS 🔒

Functions§

missing_exercise 🔒
open_course_with_exercise 🔒
The course with the records of the exercises on the pages holding exercise_id loaded.