pub struct WorkflowRunOptions {
pub lease: Option<WorkflowLeaseOptions>,
pub idempotency_key: Option<String>,
}Expand description
Optional runtime controls for a workflow run/resume/timeout operation.
Fields§
§lease: Option<WorkflowLeaseOptions>Optional per-workflow lease acquired before execution starts.
idempotency_key: Option<String>Optional idempotency key for the external operation being handled.
Implementations§
Source§impl WorkflowRunOptions
impl WorkflowRunOptions
Sourcepub fn with_lease(self, owner: impl Into<String>, ttl: Duration) -> Self
pub fn with_lease(self, owner: impl Into<String>, ttl: Duration) -> Self
Add a per-workflow lease requirement.
Sourcepub fn with_idempotency_key(self, key: impl Into<String>) -> Self
pub fn with_idempotency_key(self, key: impl Into<String>) -> Self
Add an operation idempotency key.
Trait Implementations§
Source§impl Clone for WorkflowRunOptions
impl Clone for WorkflowRunOptions
Source§impl Debug for WorkflowRunOptions
impl Debug for WorkflowRunOptions
Source§impl Default for WorkflowRunOptions
impl Default for WorkflowRunOptions
impl Eq for WorkflowRunOptions
Source§impl PartialEq for WorkflowRunOptions
impl PartialEq for WorkflowRunOptions
impl StructuralPartialEq for WorkflowRunOptions
Auto Trait Implementations§
impl Freeze for WorkflowRunOptions
impl RefUnwindSafe for WorkflowRunOptions
impl Send for WorkflowRunOptions
impl Sync for WorkflowRunOptions
impl Unpin for WorkflowRunOptions
impl UnsafeUnpin for WorkflowRunOptions
impl UnwindSafe for WorkflowRunOptions
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