pub struct NewSchedule {Show 25 fields
pub path: String,
pub schedule: String,
pub timezone: String,
pub script_path: String,
pub is_flow: bool,
pub args: HashMap<String, Value>,
pub enabled: Option<bool>,
pub on_failure: Option<String>,
pub on_failure_times: Option<f64>,
pub on_failure_exact: Option<bool>,
pub on_failure_extra_args: Option<HashMap<String, Value>>,
pub on_recovery: Option<String>,
pub on_recovery_times: Option<f64>,
pub on_recovery_extra_args: Option<HashMap<String, Value>>,
pub on_success: Option<String>,
pub on_success_extra_args: Option<HashMap<String, Value>>,
pub ws_error_handler_muted: Option<bool>,
pub retry: Option<Box<Retry>>,
pub no_flow_overlap: Option<bool>,
pub summary: Option<String>,
pub description: Option<String>,
pub tag: Option<String>,
pub paused_until: Option<String>,
pub cron_version: Option<String>,
pub dynamic_skip: Option<String>,
}Fields§
§path: StringThe path where the schedule will be created
schedule: StringThe cron schedule to trigger the script or flow. Should include seconds.
timezone: StringThe timezone to use for the cron schedule
script_path: StringThe path to the script or flow to trigger
is_flow: boolWhether the schedule is for a flow
args: HashMap<String, Value>The arguments to pass to the script or flow
enabled: Option<bool>Whether the schedule is enabled
on_failure: Option<String>The path to the script or flow to trigger on failure
on_failure_times: Option<f64>The number of times to retry on failure
on_failure_exact: Option<bool>Whether the schedule should only run on the exact time
on_failure_extra_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
on_recovery: Option<String>The path to the script or flow to trigger on recovery
on_recovery_times: Option<f64>The number of times to retry on recovery
on_recovery_extra_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
on_success: Option<String>The path to the script or flow to trigger on success
on_success_extra_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
ws_error_handler_muted: Option<bool>Whether the WebSocket error handler is muted
retry: Option<Box<Retry>>§no_flow_overlap: Option<bool>Whether the schedule should not run if a flow is already running
summary: Option<String>The summary of the schedule
description: Option<String>The description of the schedule
tag: Option<String>The tag of the schedule
paused_until: Option<String>The date and time the schedule will be paused until
cron_version: Option<String>The version of the cron schedule to use (last is v2)
dynamic_skip: Option<String>Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean.
Implementations§
Trait Implementations§
Source§impl Clone for NewSchedule
impl Clone for NewSchedule
Source§fn clone(&self) -> NewSchedule
fn clone(&self) -> NewSchedule
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NewSchedule
impl Debug for NewSchedule
Source§impl Default for NewSchedule
impl Default for NewSchedule
Source§fn default() -> NewSchedule
fn default() -> NewSchedule
Source§impl<'de> Deserialize<'de> for NewSchedule
impl<'de> Deserialize<'de> for NewSchedule
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>,
Source§impl PartialEq for NewSchedule
impl PartialEq for NewSchedule
Source§impl Serialize for NewSchedule
impl Serialize for NewSchedule
impl StructuralPartialEq for NewSchedule
Auto Trait Implementations§
impl Freeze for NewSchedule
impl RefUnwindSafe for NewSchedule
impl Send for NewSchedule
impl Sync for NewSchedule
impl Unpin for NewSchedule
impl UnwindSafe for NewSchedule
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)