pub struct ScheduleUpdate { /* private fields */ }Expand description
An update to apply to a schedule definition.
Obtain from ScheduleDescription::into_update(), modify the schedule
using the setter methods, then pass to ScheduleHandle::update().
Implementations§
Source§impl ScheduleUpdate
impl ScheduleUpdate
Sourcepub fn set_spec(&mut self, spec: ScheduleSpec) -> &mut Self
pub fn set_spec(&mut self, spec: ScheduleSpec) -> &mut Self
Replace the schedule spec (when to trigger).
Sourcepub fn set_action(&mut self, action: ScheduleAction) -> &mut Self
pub fn set_action(&mut self, action: ScheduleAction) -> &mut Self
Replace the schedule action (what to do on trigger).
Sourcepub fn set_paused(&mut self, paused: bool) -> &mut Self
pub fn set_paused(&mut self, paused: bool) -> &mut Self
Set whether the schedule is paused.
Sourcepub fn set_note(&mut self, note: impl Into<String>) -> &mut Self
pub fn set_note(&mut self, note: impl Into<String>) -> &mut Self
Set the note on the schedule state.
Sourcepub fn set_overlap_policy(&mut self, policy: ScheduleOverlapPolicy) -> &mut Self
pub fn set_overlap_policy(&mut self, policy: ScheduleOverlapPolicy) -> &mut Self
Set the overlap policy.
Sourcepub fn set_catchup_window(&mut self, window: Duration) -> &mut Self
pub fn set_catchup_window(&mut self, window: Duration) -> &mut Self
Set the catchup window. Actions missed by more than this duration are skipped.
Sourcepub fn set_pause_on_failure(&mut self, pause_on_failure: bool) -> &mut Self
pub fn set_pause_on_failure(&mut self, pause_on_failure: bool) -> &mut Self
Set whether to pause the schedule when a workflow run fails or times out.
Sourcepub fn set_keep_original_workflow_id(&mut self, keep: bool) -> &mut Self
pub fn set_keep_original_workflow_id(&mut self, keep: bool) -> &mut Self
Set whether to keep the original workflow ID without appending a timestamp.
Sourcepub fn set_remaining_actions(&mut self, count: Option<i64>) -> &mut Self
pub fn set_remaining_actions(&mut self, count: Option<i64>) -> &mut Self
Limit the schedule to a fixed number of remaining actions, after which
it stops triggering. Passing None removes the limit.
Trait Implementations§
Source§impl Clone for ScheduleUpdate
impl Clone for ScheduleUpdate
Source§fn clone(&self) -> ScheduleUpdate
fn clone(&self) -> ScheduleUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScheduleUpdate
impl RefUnwindSafe for ScheduleUpdate
impl Send for ScheduleUpdate
impl Sync for ScheduleUpdate
impl Unpin for ScheduleUpdate
impl UnsafeUnpin for ScheduleUpdate
impl UnwindSafe for ScheduleUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request