Skip to main content

Module commands

Module commands 

Source
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§

AllocatePerson
AttainmentUpsert
CallFilter
CommandError
CourseBehaviourPatch
CourseUnitUpsert
DefaultsPatch
EnrolmentUpsert
FaultFilter
PersonBehaviourPatch
PersonScope
PersonUpsert
RealisationUpsert
SisuViolationsUpsert
What Sisu refuses an attainment of this student on this course with, answered as sisuValidationFailed.
SubmissionFilter
WorldPush

Enums§

CommandResult
MockSuotarCommand
ResetScope
SubmissionTarget

Constants§

DEFAULT_CALL_LIMIT 🔒
WORLD_DUMP_CALL_LIMIT 🔒

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 null apart 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_of reads the id off the built entity rather than the wire type, so a derived id is what comes back under result_key.
world_from_push

Type Aliases§

Outcome 🔒