Expand description
patch_course_settings: course and module settings. Publishing switches stay read-only.
Structs§
- Audience
- A target audience of the course.
- Completion
Policy - Module completion. The
tresholdspelling matches the stored field names. - Course
Settings - The settings document
get_course_settingsshows andpatch_course_settingsedits. - Course
Settings Course - The course’s own settings. Its fields are
EDITABLE_COURSE_FIELDS,READ_ONLY_COURSE_FIELDSandaudiences. - Module
Settings - One module’s settings. Its fields are
id,nameandEDITABLE_MODULE_FIELDS. - Settings
Result - The new state after a successful call. Nothing is stored until the caller stages it.
Enums§
- AiPolicy
- The course’s AI policy with the names agents use; mirrors the models’
CourseAiPolicy. - Completion
Policy Kind - Whether a module completes on its own when its thresholds are met.
Constants§
- EDITABLE_
COURSE_ 🔒FIELDS - Course fields agents may set.
- EDITABLE_
MODULE_ 🔒FIELDS - Module fields agents may set with this tool; the structure tool renames modules.
- POLICY_
FIELDS 🔒 - The fields of a completion policy.
- READ_
ONLY_ 🔒COURSE_ FIELDS - Course fields agents see but only teachers change.
Functions§
- apply
- Applies
opsin order todoc. - apply_
op 🔒 - boolean 🔒
- course_
op 🔒 - module_
op 🔒 - parse_
policy 🔒 - set_
policy_ 🔒field - Sets one policy field, or clears it with
None, and checks the result. Owns the errors for unknown and misspelled field names. - unknown_
course_ 🔒field pathnames no course setting agents can edit.- validate_
policy 🔒 - whole_
number 🔒 - The value as a whole number from 0 to
i32::MAX.