pub struct StartWorkflowOptions {
pub workflow_id: Option<WorkflowId>,
pub routing_key: Option<String>,
pub parent_run_id: Option<RunId>,
pub loaded_version: Option<ContentHash>,
pub search_attributes: HashMap<String, SearchAttributeValue>,
pub namespace: Option<String>,
}Expand description
Optional identifiers used by internal start callers such as continue-as-new.
Fields§
§workflow_id: Option<WorkflowId>Existing workflow identifier to reuse; omitted for a fresh workflow.
routing_key: Option<String>Caller-chosen R-4 steered-start routing key. When set (and no explicit
workflow_id is supplied), the request-routing edge derives a fresh id on
shard_for(routing_key) so the start is steered to that shard’s owner —
forwarded there when this node is not the owner. None (the default) keeps
the unsteered R-1 remint behaviour, so the single-node path is unchanged.
parent_run_id: Option<RunId>Parent run that continued into this run, when applicable.
loaded_version: Option<ContentHash>Exact loaded package version to spawn; omitted to use the latest version.
search_attributes: HashMap<String, SearchAttributeValue>Initial search attributes recorded atomically with WorkflowStarted.
namespace: Option<String>Namespace that owns this workflow execution; defaults to "default".
Trait Implementations§
Source§impl Clone for StartWorkflowOptions
impl Clone for StartWorkflowOptions
Source§fn clone(&self) -> StartWorkflowOptions
fn clone(&self) -> StartWorkflowOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more