macro_rules! runtime_task_registry {
(
$(#[$meta:meta])*
$vis:vis mod $module:ident {
kind: $kind:ty;
presentation: $presentation:ty;
tasks {
$(
$kind_value:path => {
wire: $wire:literal,
display: $display:literal,
presentation: $presentation_value:path $(,)?
}
),+ $(,)?
}
}
) => { ... };
}Expand description
Generates product-local runtime task metadata lookup functions.
The generated module exposes:
DEFINITIONSas_str(kind)display_name(kind)presentation_code(kind)from_wire_value(value)
This keeps runtime task wire values, display names, and presentation codes registered in one product-local place while preserving product-owned enums and UI codes.