pub struct CronSchedule {
pub kind: ScheduleKind,
pub at_ms: Option<i64>,
pub every_ms: Option<i64>,
pub expr: Option<String>,
pub tz: Option<String>,
}Expand description
Schedule definition for a cron job.
Fields§
§kind: ScheduleKindThe type of schedule.
at_ms: Option<i64>For ScheduleKind::At: timestamp in milliseconds since epoch.
every_ms: Option<i64>For ScheduleKind::Every: interval in milliseconds.
expr: Option<String>For ScheduleKind::Cron: cron expression (e.g. "0 9 * * *").
tz: Option<String>Timezone for cron expressions (e.g. "UTC", "Asia/Shanghai").
Trait Implementations§
Source§impl Clone for CronSchedule
impl Clone for CronSchedule
Source§fn clone(&self) -> CronSchedule
fn clone(&self) -> CronSchedule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CronSchedule
impl Debug for CronSchedule
Source§impl Default for CronSchedule
impl Default for CronSchedule
Source§impl<'de> Deserialize<'de> for CronSchedule
impl<'de> Deserialize<'de> for CronSchedule
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 CronSchedule
impl RefUnwindSafe for CronSchedule
impl Send for CronSchedule
impl Sync for CronSchedule
impl Unpin for CronSchedule
impl UnsafeUnpin for CronSchedule
impl UnwindSafe for CronSchedule
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