pub struct JobSchedule {
pub kind: String,
pub expr: Option<String>,
pub minutes: Option<f64>,
pub run_at: Option<String>,
pub display: String,
}Expand description
A job’s firing rule, with the native expression preserved.
Fields§
§kind: Stringcron | interval | once | unknown.
expr: Option<String>Cron expression, for kind = "cron".
minutes: Option<f64>Interval in minutes, for kind = "interval".
run_at: Option<String>Absolute instant, for kind = "once".
display: StringOne-line human rendering of whichever of the three above is set.
Trait Implementations§
Source§impl Clone for JobSchedule
impl Clone for JobSchedule
Source§fn clone(&self) -> JobSchedule
fn clone(&self) -> JobSchedule
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 moreSource§impl Debug for JobSchedule
impl Debug for JobSchedule
Source§impl<'de> Deserialize<'de> for JobSchedule
impl<'de> Deserialize<'de> for JobSchedule
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
Source§impl PartialEq for JobSchedule
impl PartialEq for JobSchedule
Source§impl Serialize for JobSchedule
impl Serialize for JobSchedule
impl StructuralPartialEq for JobSchedule
Auto Trait Implementations§
impl Freeze for JobSchedule
impl RefUnwindSafe for JobSchedule
impl Send for JobSchedule
impl Sync for JobSchedule
impl Unpin for JobSchedule
impl UnsafeUnpin for JobSchedule
impl UnwindSafe for JobSchedule
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