pub struct Schedule {Show 13 fields
pub name: String,
pub cron: String,
pub prompt: String,
pub cwd: String,
pub enabled: bool,
pub model: Option<String>,
pub permission_mode: Option<String>,
pub max_cost_usd: Option<f64>,
pub max_turns: Option<usize>,
pub created_at: DateTime<Utc>,
pub last_run_at: Option<DateTime<Utc>>,
pub last_result: Option<RunResult>,
pub webhook_secret: Option<String>,
}Expand description
A persisted schedule definition.
Fields§
§name: StringUnique schedule name (used as filename).
cron: StringCron expression (5-field).
prompt: StringPrompt to send to the agent on each run.
cwd: StringWorking directory for the agent session.
enabled: boolWhether this schedule is active.
model: Option<String>Optional model override.
permission_mode: Option<String>Optional permission mode override.
max_cost_usd: Option<f64>Maximum cost (USD) per run.
max_turns: Option<usize>Maximum turns per run.
created_at: DateTime<Utc>When this schedule was created.
last_run_at: Option<DateTime<Utc>>Last execution time (if any).
last_result: Option<RunResult>Last execution result.
webhook_secret: Option<String>Webhook secret for HTTP trigger (if set).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schedule
impl<'de> Deserialize<'de> for Schedule
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 Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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