pub enum Schedule {
Once,
Interval {
every_seconds: u64,
},
Daily {
time: NaiveTime,
},
Weekly {
day: Weekday,
time: NaiveTime,
},
}Expand description
Recurrence schedule for a repeating reminder.
When record_execution completes, the manager computes the next due_at
from the schedule and resets status to Pending.
Variants§
Once
Fire once (no recurrence). This is the default when no schedule is set.
Interval
Repeat every N seconds after each execution.
Daily
Repeat daily at a fixed UTC time.
Weekly
Repeat weekly on a specific day at a fixed UTC time.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schedule
impl<'de> Deserialize<'de> for Schedule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Schedule
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more