Struct StartOptions
pub struct StartOptions {
pub timeout: Option<Duration>,
pub id_policy: IdPolicy,
pub version: Option<u32>,
pub at_ms: Option<u64>,
pub trace: Option<String>,
pub concurrency_key: Option<String>,
}Expand description
How a run is started.
Fields§
§timeout: Option<Duration>Workflow deadline: the run ends TimedOut after this long.
id_policy: IdPolicyWhat happens when the workflow ID is running or recently finished.
version: Option<u32>Run a specific registered version instead of the newest.
at_ms: Option<u64>Start the run at this time (Unix ms) instead of now
(crate::delay).
trace: Option<String>The W3C traceparent the run joins: its spans, and its children’s,
go in that trace. With the opentelemetry feature, the current
span’s context is used when this is not set.
concurrency_key: Option<String>For a type with a limit on runs at once (Engine::limit_runs),
the key the limit counts by (a tenant): runs of one key take turns
apart from other keys’.
Implementations§
§impl StartOptions
impl StartOptions
pub fn id_policy(self, p: IdPolicy) -> Self
pub fn use_existing(self) -> Self
pub fn use_existing(self) -> Self
Return the running workflow instead of failing.
Trait Implementations§
§impl Clone for StartOptions
impl Clone for StartOptions
§fn clone(&self) -> StartOptions
fn clone(&self) -> StartOptions
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 more§impl Debug for StartOptions
impl Debug for StartOptions
§impl Default for StartOptions
impl Default for StartOptions
§fn default() -> StartOptions
fn default() -> StartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StartOptions
impl RefUnwindSafe for StartOptions
impl Send for StartOptions
impl Sync for StartOptions
impl Unpin for StartOptions
impl UnsafeUnpin for StartOptions
impl UnwindSafe for StartOptions
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