Skip to main content

Module intent

Module intent 

Source
Expand description

Sim config TOML: build from portal input, parse back for the engine.

Structsยง

IntentConfigError
Failure to build, parse, validate, or serialize a simulation intent.
IntentInput
Sim configuration as supplied by the portal.
SimConfigIntent
Versioned TOML form of the sim intent shipped to the engine.

Enumsยง

IntentConfigErrorKind ๐Ÿ”’
IntentConfigOperation
Operation being performed when an intent configuration failed.

Constantsยง

INTENT_VERSION
Intent schema version stamped into every SimConfigIntent and checked by the engine validator.
OBSOLETE_ENCOUNTER_SETTINGS ๐Ÿ”’

Functionsยง

build_sim_config
Build a TOML sim config from an IntentInput (spec_id is the WoW API spec ID).
json_to_toml ๐Ÿ”’
parse_sim_config
Parse and validate the sole current sim-intent contract.
serialize_sim_config
Serialize a SimConfigIntent back to canonical pretty-printed TOML.
validate_intent ๐Ÿ”’