pub fn parse_event(name: &str) -> Result<Event, LoadError>
Parse a hook’s on: string to the closed Event enum (doc 11 §3). An unknown name is a load error. Custom(N) is the open tail.
on:
Event
Custom(N)