pub struct CronJobState {
pub next_run_at: Option<DateTime<Utc>>,
pub last_run_at: Option<DateTime<Utc>>,
pub last_status: Option<JobStatus>,
pub last_error: Option<String>,
}Expand description
Runtime state of a cron job.
Fields§
§next_run_at: Option<DateTime<Utc>>Next scheduled run time (UTC).
last_run_at: Option<DateTime<Utc>>Last actual run time (UTC).
last_status: Option<JobStatus>Outcome of the last run.
last_error: Option<String>Error message from the last failed run.
Trait Implementations§
Source§impl Clone for CronJobState
impl Clone for CronJobState
Source§fn clone(&self) -> CronJobState
fn clone(&self) -> CronJobState
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 CronJobState
impl Debug for CronJobState
Source§impl Default for CronJobState
impl Default for CronJobState
Source§fn default() -> CronJobState
fn default() -> CronJobState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CronJobState
impl<'de> Deserialize<'de> for CronJobState
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 CronJobState
impl RefUnwindSafe for CronJobState
impl Send for CronJobState
impl Sync for CronJobState
impl Unpin for CronJobState
impl UnsafeUnpin for CronJobState
impl UnwindSafe for CronJobState
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