pub struct WorkflowInputRequiredEvent {
pub run_id: Uuid,
pub step_id: Uuid,
pub step_name: String,
pub step_index: u32,
pub message: String,
pub schema: Value,
}Expand description
Payload of the WorkflowEvent::InputRequired workflow event.
§Examples
use ironflow_engine::notify::WorkflowInputRequiredEvent;
use serde_json::json;
use uuid::Uuid;
let payload = WorkflowInputRequiredEvent {
run_id: Uuid::now_v7(),
step_id: Uuid::now_v7(),
step_name: "clarify".to_string(),
step_index: 2,
message: "Answer the questions".to_string(),
schema: json!({"type": "object"}),
};
assert_eq!(payload.step_name, "clarify");Fields§
§run_id: UuidThe run waiting for the input.
step_id: UuidIdentifier of the human input step; the answer is posted to it.
step_name: StringHuman-readable step name.
step_index: u32Zero-based position in the workflow.
message: StringMessage displayed to the person answering.
schema: ValueJSON schema the answer must match.
Trait Implementations§
Source§impl Clone for WorkflowInputRequiredEvent
impl Clone for WorkflowInputRequiredEvent
Source§impl Debug for WorkflowInputRequiredEvent
impl Debug for WorkflowInputRequiredEvent
Source§impl<'de> Deserialize<'de> for WorkflowInputRequiredEvent
impl<'de> Deserialize<'de> for WorkflowInputRequiredEvent
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 WorkflowInputRequiredEvent
impl RefUnwindSafe for WorkflowInputRequiredEvent
impl Send for WorkflowInputRequiredEvent
impl Sync for WorkflowInputRequiredEvent
impl Unpin for WorkflowInputRequiredEvent
impl UnsafeUnpin for WorkflowInputRequiredEvent
impl UnwindSafe for WorkflowInputRequiredEvent
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