Skip to main content

Module commands

Module commands 

Source
Expand description

The control command RPC and the three inspection GETs.

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
ProductAccessTokenUpsert
RealisationUpsert
SubmissionFilter
WorldPush

Enumsยง

CommandResult
MockSuotarCommand
ResetScope
SubmissionTarget

Constantsยง

DEFAULT_CALL_LIMIT ๐Ÿ”’
WORLD_DUMP_CALL_LIMIT ๐Ÿ”’

Functionsยง

_add_routes
Nothing here is exported to utoipa or bindings.ts; no mockโ€™s DTOs are.
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 ๐Ÿ”’
build_fault ๐Ÿ”’
command
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.
dump ๐Ÿ”’
enrolment_from ๐Ÿ”’
execute
generate_roster ๐Ÿ”’
health
internal_error ๐Ÿ”’
list_calls ๐Ÿ”’
localized ๐Ÿ”’
overlaps ๐Ÿ”’
person_from ๐Ÿ”’
product_token_from ๐Ÿ”’
reset ๐Ÿ”’
resolve_owner ๐Ÿ”’
run ๐Ÿ”’
submission_ids_for ๐Ÿ”’
transition ๐Ÿ”’
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
world_from_push

Type Aliasesยง

Outcome ๐Ÿ”’