agent_hub_runtime/core/platforms/
schedule_contracts.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize)]
5pub struct ScheduleConfig {
6 pub title: String,
7 pub target: String,
8 pub cron: String,
9 pub timezone: String,
10 pub active: bool,
11}
12
13#[derive(Debug, Default, Deserialize)]
14#[serde(deny_unknown_fields)]
15pub struct ScheduleEdit {
16 pub title: Option<String>,
17 pub target: Option<String>,
18 pub cron: Option<String>,
19 pub timezone: Option<String>,
20 pub active: Option<bool>,
21}