pub struct ResetFlowOptions { /* private fields */ }Expand description
Selects a historical point from which crate::Client::reset_flow creates a new run.
Constructors identify exactly one reset point. Builder methods add an audit reason and control
whether Channel messages and locking RPCs are reapplied. Both reapply switches default to
false, so historical operations are reapplied.
Implementations§
Source§impl ResetFlowOptions
impl ResetFlowOptions
Sourcepub fn from_beginning() -> Self
pub fn from_beginning() -> Self
Resets before the first workflow-history event.
Sourcepub fn from_history_event_id(event_id: i64) -> Self
pub fn from_history_event_id(event_id: i64) -> Self
Resets at the specified server workflow-history event ID.
Sourcepub fn from_history_event_time(event_time: SystemTime) -> Self
pub fn from_history_event_time(event_time: SystemTime) -> Self
Resets at the last eligible history event at or before event_time.
Sourcepub fn from_step<SomeStep: Step>(step: &SomeStep) -> Self
pub fn from_step<SomeStep: Step>(step: &SomeStep) -> Self
Resets before the first execution of the selected Step type.
Sourcepub fn from_step_execution(step_execution: StepExecutionId) -> Self
pub fn from_step_execution(step_execution: StepExecutionId) -> Self
Resets before the exact Step execution identified by step_execution.
Sourcepub fn reason(self, reason: impl Into<String>) -> Self
pub fn reason(self, reason: impl Into<String>) -> Self
Adds an operator-facing reason recorded with the reset.
Sourcepub fn skip_channel_messages_reapply(self, skip: bool) -> Self
pub fn skip_channel_messages_reapply(self, skip: bool) -> Self
Controls whether post-reset Channel messages are skipped instead of reapplied.
Sourcepub fn skip_locking_rpc_reapply(self, skip: bool) -> Self
pub fn skip_locking_rpc_reapply(self, skip: bool) -> Self
Controls whether post-reset locking RPCs are skipped instead of reapplied.
Trait Implementations§
Source§impl Clone for ResetFlowOptions
impl Clone for ResetFlowOptions
Source§fn clone(&self) -> ResetFlowOptions
fn clone(&self) -> ResetFlowOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ResetFlowOptions
impl RefUnwindSafe for ResetFlowOptions
impl Send for ResetFlowOptions
impl Sync for ResetFlowOptions
impl Unpin for ResetFlowOptions
impl UnsafeUnpin for ResetFlowOptions
impl UnwindSafe for ResetFlowOptions
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
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>
T in a tonic::Request