pub enum Schedule {
Cron(Box<CronExpr>),
Once {
at: DateTime<Utc>,
},
Dynamic,
}Expand description
What kind of cadence a Task runs on.
Variants§
Cron(Box<CronExpr>)
Standard 5-field cron expression. Boxed because CronExpr is much
larger than the other variants.
Once
One-shot at the specified UTC time.
Struct variant (not newtype) so serde’s internally-tagged representation
can embed the at field directly in the JSON object alongside "kind".
Dynamic
Claude picks the delay between iterations dynamically.
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
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