pub struct StartNode;Expand description
开始节点执行器 负责处理工作流的输入参数验证
Trait Implementations§
Source§impl NodeExecutor for StartNode
impl NodeExecutor for StartNode
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
ctx: NodeContext,
) -> Pin<Box<dyn Future<Output = Result<Value, WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
ctx: NodeContext,
) -> Pin<Box<dyn Future<Output = Result<Value, WorkflowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
执行开始节点逻辑
- 解析节点配置中的输入定义
- 验证工作流上下文中的 payload 数据是否符合定义
fn validate(&self, _data: &Value) -> Result<(), WorkflowError>
Auto Trait Implementations§
impl Freeze for StartNode
impl RefUnwindSafe for StartNode
impl Send for StartNode
impl Sync for StartNode
impl Unpin for StartNode
impl UnsafeUnpin for StartNode
impl UnwindSafe for StartNode
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