pub struct CronJob {Show 15 fields
pub id: Uuid,
pub name: String,
pub schedule: String,
pub goal: String,
pub constraints: Vec<String>,
pub acceptance_criteria: Vec<String>,
pub toolchain: String,
pub priority: Priority,
pub enabled: bool,
pub last_run: Option<DateTime<Utc>>,
pub next_run: Option<DateTime<Utc>>,
pub run_count: u64,
pub last_result: Option<String>,
pub last_success: Option<bool>,
pub source: JobSource,
}Expand description
A cron job definition.
Fields§
§id: UuidUnique job identifier.
name: StringHuman-readable job name.
schedule: StringCron expression (e.g. “0 */6 * * *”).
goal: StringGoal description for the agent.
constraints: Vec<String>Constraints on agent behavior.
acceptance_criteria: Vec<String>Criteria that must be met for success.
toolchain: StringToolchain preset name.
priority: PriorityJob priority.
enabled: boolWhether the job is active.
last_run: Option<DateTime<Utc>>Timestamp of the last execution.
next_run: Option<DateTime<Utc>>Timestamp of the next scheduled execution.
run_count: u64Number of times this job has run.
last_result: Option<String>Summary of the last execution result.
last_success: Option<bool>Whether the last execution succeeded.
source: JobSourceHow the job was created.
Implementations§
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