Skip to main content

agent_hub_runtime/core/platforms/
schedule_contracts.rs

1use serde::{Deserialize, Serialize};
2
3/// Editable schedule fields only; variables and inputs never leave the platform.
4#[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}