pub struct SaveScheduleRequest {
pub name: String,
pub cron_expression: String,
pub start_workflow_request: StartWorkflowScheduleRequest,
pub paused: bool,
pub run_catchup_schedule_instances: bool,
pub schedule_start_time: Option<i64>,
pub schedule_end_time: Option<i64>,
pub zone_id: Option<String>,
pub description: Option<String>,
}Expand description
Request to save a schedule.
Fields§
§name: StringSchedule name.
cron_expression: StringCron expression.
start_workflow_request: StartWorkflowScheduleRequestStart workflow request.
paused: boolWhether the schedule is paused.
run_catchup_schedule_instances: boolRun catchup schedule instances.
schedule_start_time: Option<i64>Schedule start time.
schedule_end_time: Option<i64>Schedule end time.
zone_id: Option<String>Timezone.
description: Option<String>Human-readable description.
Implementations§
Source§impl SaveScheduleRequest
impl SaveScheduleRequest
Sourcepub fn new(
name: impl Into<String>,
cron_expression: impl Into<String>,
workflow_name: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, cron_expression: impl Into<String>, workflow_name: impl Into<String>, ) -> Self
Create a new save schedule request.
Sourcepub fn with_version(self, version: i32) -> Self
pub fn with_version(self, version: i32) -> Self
Set workflow version.
Sourcepub fn with_input(self, input: HashMap<String, Value>) -> Self
pub fn with_input(self, input: HashMap<String, Value>) -> Self
Set workflow input.
Sourcepub fn with_timezone(self, timezone: impl Into<String>) -> Self
pub fn with_timezone(self, timezone: impl Into<String>) -> Self
Set timezone.
Sourcepub fn with_catchup(self, run_catchup_schedule_instances: bool) -> Self
pub fn with_catchup(self, run_catchup_schedule_instances: bool) -> Self
Set whether missed fires should be replayed on resume.
Sourcepub fn with_start_time(self, schedule_start_time: i64) -> Self
pub fn with_start_time(self, schedule_start_time: i64) -> Self
Set the schedule’s active window start (epoch ms).
Sourcepub fn with_end_time(self, schedule_end_time: i64) -> Self
pub fn with_end_time(self, schedule_end_time: i64) -> Self
Set the schedule’s active window end (epoch ms).
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set a human-readable description.
Trait Implementations§
Source§impl Clone for SaveScheduleRequest
impl Clone for SaveScheduleRequest
Source§impl Debug for SaveScheduleRequest
impl Debug for SaveScheduleRequest
Source§impl Default for SaveScheduleRequest
impl Default for SaveScheduleRequest
Source§impl<'de> Deserialize<'de> for SaveScheduleRequest
impl<'de> Deserialize<'de> for SaveScheduleRequest
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 SaveScheduleRequest
impl RefUnwindSafe for SaveScheduleRequest
impl Send for SaveScheduleRequest
impl Sync for SaveScheduleRequest
impl Unpin for SaveScheduleRequest
impl UnsafeUnpin for SaveScheduleRequest
impl UnwindSafe for SaveScheduleRequest
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