pub struct WorkflowSpec {
pub state: Option<StateSchema>,
pub entrypoint: String,
pub steps: Vec<WorkflowStep>,
pub reducers: HashMap<String, StateReducer>,
pub error_handler: Option<String>,
pub retry: Option<RetryConfig>,
pub checkpointing: Option<CheckpointConfig>,
pub recovery: Option<RecoveryConfig>,
pub fleet: Option<String>,
}Expand description
Workflow specification
Fields§
§state: Option<StateSchema>State schema definition (JSON Schema format)
entrypoint: StringEntry point step name
steps: Vec<WorkflowStep>Workflow steps
reducers: HashMap<String, StateReducer>State reducers for custom update behavior
error_handler: Option<String>Global error handler step name
retry: Option<RetryConfig>Global retry configuration
checkpointing: Option<CheckpointConfig>Checkpointing configuration
recovery: Option<RecoveryConfig>Recovery configuration
fleet: Option<String>Reference to an AgentFleet
Trait Implementations§
Source§impl Clone for WorkflowSpec
impl Clone for WorkflowSpec
Source§fn clone(&self) -> WorkflowSpec
fn clone(&self) -> WorkflowSpec
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 moreSource§impl Debug for WorkflowSpec
impl Debug for WorkflowSpec
Source§impl<'de> Deserialize<'de> for WorkflowSpec
impl<'de> Deserialize<'de> for WorkflowSpec
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 WorkflowSpec
impl RefUnwindSafe for WorkflowSpec
impl Send for WorkflowSpec
impl Sync for WorkflowSpec
impl Unpin for WorkflowSpec
impl UnwindSafe for WorkflowSpec
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