Skip to main content

Module routing

Module routing 

Source
Expand description

Shared format alias and JSON shape routing for the powerio crate.

It maps format name aliases with no parsing at all, and classifies JSON content by deserializing a typed header instead of materializing the whole document into a generic value tree.

Enums§

Detection
A classification result that can be known, absent, or unsafe to choose.
DistributionFormat
Domain
JsonClass
Top level classification of bare JSON text: a PowerIO IR document or a case document with its format detection. One header read answers every question instead of requiring a full document parse per question.
SourceFormat
TransmissionFormat

Constants§

JSON_CLASSES
The closed set of classification families, in the one spelling every surface uses: the Rust JsonClass, the C pio_classify_str label before its optional :<format> tail, the Python classify_json_text status, and the Julia family symbol.

Functions§

classify_format_name
Resolve a source format name or common alias.
classify_json_bytes
Classify JSON bytes without performing lossy text replacement.
classify_json_text
Classify a JSON document: a PowerIO IR module or a case document across the transmission and distribution domains.
parse_distribution_format
parse_transmission_format

Type Aliases§

JsonFormat