utc_cron_expr/schedule/struct.rs
1/// Compiled 5-field or 6-field cron expression backed by O(1) bitmasks.
2#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3pub struct CronSchedule {
4 /// Allowed seconds bitmask (`0..=59`; bit 0 only for 5-field expressions).
5 pub(crate) seconds: u64,
6 /// Allowed minutes bitmask (`0..=59`).
7 pub(crate) minutes: u64,
8 /// Allowed hours bitmask (`0..=23`).
9 pub(crate) hours: u64,
10 /// Allowed day-of-month bitmask (`1..=31`).
11 pub(crate) days: u64,
12 /// Allowed month bitmask (`1..=12`).
13 pub(crate) months: u64,
14 /// Allowed day-of-week bitmask (`0 = Sun ..= 6 = Sat`).
15 pub(crate) weekdays: u64,
16 /// Whether day-of-month was explicitly restricted (not `*`/`?`).
17 pub(crate) day_restricted: bool,
18 /// Whether day-of-week was explicitly restricted (not `*`/`?`).
19 pub(crate) weekday_restricted: bool,
20}