pub struct CronJob {
pub id: String,
pub name: String,
pub enabled: bool,
pub schedule: CronSchedule,
pub payload: CronPayload,
pub state: CronJobState,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub delete_after_run: bool,
}Expand description
A scheduled job.
Fields§
§id: StringUnique job identifier.
name: StringHuman-readable job name.
enabled: boolWhether the job is active.
schedule: CronScheduleWhen and how often to run.
payload: CronPayloadWhat to do when the job fires.
state: CronJobStateRuntime state (next run, last run, etc.).
created_at: DateTime<Utc>Creation timestamp (UTC).
updated_at: DateTime<Utc>Last update timestamp (UTC).
delete_after_run: boolIf true, delete the job after its next successful run.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CronJob
impl<'de> Deserialize<'de> for CronJob
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 CronJob
impl RefUnwindSafe for CronJob
impl Send for CronJob
impl Sync for CronJob
impl Unpin for CronJob
impl UnsafeUnpin for CronJob
impl UnwindSafe for CronJob
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