#[non_exhaustive]pub enum TimeSpecification {
Cron(String),
}Available on crate feature
schedule-service only.Expand description
Required. The time specification to launch scheduled runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cron(String)
Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: “CRON_TZ=${IANA_TIME_ZONE}” or “TZ=${IANA_TIME_ZONE}”. The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, “CRON_TZ=America/New_York 1 * * * *”, or “TZ=America/New_York 1 * * * *”.
Trait Implementations§
Source§impl Clone for TimeSpecification
impl Clone for TimeSpecification
Source§fn clone(&self) -> TimeSpecification
fn clone(&self) -> TimeSpecification
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 TimeSpecification
impl Debug for TimeSpecification
Source§impl PartialEq for TimeSpecification
impl PartialEq for TimeSpecification
impl StructuralPartialEq for TimeSpecification
Auto Trait Implementations§
impl Freeze for TimeSpecification
impl RefUnwindSafe for TimeSpecification
impl Send for TimeSpecification
impl Sync for TimeSpecification
impl Unpin for TimeSpecification
impl UnwindSafe for TimeSpecification
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