Skip to main content

parse_schedule

Function parse_schedule 

Source
pub fn parse_schedule(schedule: &str) -> Result<Schedule, String>
Expand description

Parse an operator-written schedule, normalizing the 5-field form first.

Returned as a String error so the API layer can hand the operator the reason their expression was rejected at create time, rather than the automation silently never firing.