Expand description
The control commands behind the mock’s /control/command route.
execute is a plain async function so the seed can drive the same surface from Rust.
Structs§
- Allocate
Person - Attainment
Upsert - Call
Filter - Command
Error - Course
Behaviour Patch - Course
Unit Upsert - Defaults
Patch - Enrolment
Upsert - Fault
Filter - Person
Behaviour Patch - Person
Scope - Person
Upsert - Realisation
Upsert - Sisu
Violations Upsert - What Sisu refuses an attainment of this student on this course with, answered as
sisuValidationFailed. - Submission
Filter - World
Push
Enums§
Constants§
Functions§
- allocate_
person 🔒 - Draws from a range disjoint from the seed’s per-spec blocks. A convenience, not an isolation primitive.
- apply_
defaults_ 🔒patch - arm_
fault - attainment_
from 🔒 - A course-unit attainment, the default, carries no assessment item or realisation.
- build_
fault 🔒 - course_
unit_ 🔒from - current_
generation 🔒 - Builds the world lazily if a command arrives before any contract request has.
- degree 🔒
- delete_
persons 🔒 - Destructive with no undo: nothing keeps a copy of a person a spec upserted.
- enrolment_
from 🔒 - execute
- explicit_
null 🔒 - Keeps an explicit
nullapart from an absent key, which serde otherwise folds together. - generate_
roster 🔒 - list_
calls 🔒 - localized 🔒
- overlaps 🔒
- person_
from 🔒 - reset 🔒
- resolve_
owner 🔒 - run 🔒
- submission_
ids_ 🔒for - transition 🔒
- Moves submissions to where the importer and the send would have left them. Attainments minted from a submission are replaced wholesale, so a later transition never leaves an earlier one’s attainment behind.
- upsert_
command 🔒 - The shared body behind every
Upsert*command.key_ofreads the id off the built entity rather than the wire type, so a derived id is what comes back underresult_key. - world_
from_ push
Type Aliases§
- Outcome 🔒