Skip to main content

trigger_name

Function trigger_name 

Source
pub fn trigger_name(trigger: &Trigger) -> Option<String>
Expand description

The declaration’s human label, if it has one.

Written through extra_fields by every surface that accepts name on a trigger, and read back here so list and status can print it (#73). Blank is treated as absent: a name that renders as nothing is worse than none, because it displaces the hash a reader could otherwise have used.