pub struct CronSchedule {
pub expression: String,
pub time_zone: Tz,
pub trigger_id: String,
pub route_id: Option<String>,
}Expand description
A scheduled cron trigger handed to a CronService.
Fields§
§expression: StringNormalized 6-field cron expression in cron crate format
(sec min hour dom month dow). The CronConsumer normalizes
the 5-field Unix input from the URI by prepending 0 for seconds.
time_zone: TzIANA timezone for evaluating the expression.
trigger_id: StringStable trigger identity — the name from the URI path.
route_id: Option<String>Route owning this schedule, if known at Endpoint creation.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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