pub struct Schedule {
pub id: String,
pub workflow: String,
pub cron: String,
pub timezone: String,
pub enabled: bool,
pub user_id: String,
pub variables: HashMap<String, String>,
pub notify: ScheduleNotify,
pub on_missed: MissedPolicy,
pub executor: ScheduleExecutor,
}Expand description
A schedule definition — the canonical shared type.
Used in ~/.mur/schedules.yaml and synced to server.
Commander adds runtime state (last_run, next_run, etc.) separately.
Fields§
§id: StringUnique schedule ID
workflow: StringWorkflow name to execute
cron: StringCron expression (5-7 fields)
timezone: StringTimezone (e.g. “Asia/Taipei”, “UTC”)
enabled: boolWhether this schedule is active
user_id: StringOwner user ID (empty for solo mode)
variables: HashMap<String, String>Variables to pass to the workflow
notify: ScheduleNotifyNotification config
on_missed: MissedPolicyWhat to do when executions are missed
executor: ScheduleExecutorWho is currently ticking this schedule
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