pub struct StartWorkflowRequest {
pub name: String,
pub version: Option<i32>,
pub input: HashMap<String, Value>,
pub correlation_id: Option<String>,
pub task_to_domain: HashMap<String, String>,
pub workflow_def: Option<WorkflowDef>,
pub external_input_payload_storage_path: Option<String>,
pub priority: i32,
}Expand description
Request to start a workflow.
Fields§
§name: StringWorkflow name.
version: Option<i32>Workflow version (optional, uses latest if not specified).
input: HashMap<String, Value>Workflow input.
correlation_id: Option<String>Correlation ID.
task_to_domain: HashMap<String, String>Task to domain mapping.
workflow_def: Option<WorkflowDef>Workflow definition (for dynamic workflows).
external_input_payload_storage_path: Option<String>External input payload storage path.
priority: i32Priority.
Implementations§
Source§impl StartWorkflowRequest
impl StartWorkflowRequest
Sourcepub fn with_version(self, version: i32) -> Self
pub fn with_version(self, version: i32) -> Self
Set workflow version.
Sourcepub fn with_input(self, input: HashMap<String, Value>) -> Self
pub fn with_input(self, input: HashMap<String, Value>) -> Self
Set workflow input.
Sourcepub fn with_input_value(
self,
key: impl Into<String>,
value: impl Serialize,
) -> Self
pub fn with_input_value( self, key: impl Into<String>, value: impl Serialize, ) -> Self
Add a single input value.
Sourcepub fn with_correlation_id(self, id: impl Into<String>) -> Self
pub fn with_correlation_id(self, id: impl Into<String>) -> Self
Set correlation ID.
Sourcepub fn with_priority(self, priority: i32) -> Self
pub fn with_priority(self, priority: i32) -> Self
Set priority.
Sourcepub fn with_task_to_domain(self, mapping: HashMap<String, String>) -> Self
pub fn with_task_to_domain(self, mapping: HashMap<String, String>) -> Self
Set task to domain mapping.
Sourcepub fn with_workflow_def(self, def: WorkflowDef) -> Self
pub fn with_workflow_def(self, def: WorkflowDef) -> Self
Set workflow definition (for dynamic workflows).
Trait Implementations§
Source§impl Clone for StartWorkflowRequest
impl Clone for StartWorkflowRequest
Source§impl Debug for StartWorkflowRequest
impl Debug for StartWorkflowRequest
Source§impl Default for StartWorkflowRequest
impl Default for StartWorkflowRequest
Source§impl<'de> Deserialize<'de> for StartWorkflowRequest
impl<'de> Deserialize<'de> for StartWorkflowRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StartWorkflowRequest
impl RefUnwindSafe for StartWorkflowRequest
impl Send for StartWorkflowRequest
impl Sync for StartWorkflowRequest
impl Unpin for StartWorkflowRequest
impl UnsafeUnpin for StartWorkflowRequest
impl UnwindSafe for StartWorkflowRequest
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