Skip to main content

preset_for_cron

Function preset_for_cron 

Source
pub fn preset_for_cron(cron: Option<&str>) -> QuartzSchedulePreset
Expand description

Derives the preset that best describes a stored cron expression. Absent or blank is QuartzSchedulePreset::None, an exact match (ignoring surrounding whitespace) is that preset, and anything else is Custom.