Skip to main content

trigger_name

Function trigger_name 

Source
pub fn trigger_name(trigger: Trigger) -> &'static str
Expand 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; }