pub fn trigger_name(trigger: Trigger) -> &'static strExpand description
What:
The wire spelling of a trigger.
&'static str is text baked into the program
for its whole run (sibling String would be an owned copy).
Why:
Events print exactly the spellings the incumbent emitted.
In TS you’d write (pseudocode):
function triggerName(trigger: PolicyTrigger): string { return trigger; }