use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowInspectorPlan {
#[serde(rename = "current_stage")]
pub current_stage: Box<models::FlowStageBinding>,
#[serde(rename = "next_planned_stage")]
pub next_planned_stage: Box<models::FlowStageBinding>,
#[serde(rename = "plan_context")]
pub plan_context: std::collections::HashMap<String, serde_json::Value>,
#[serde(rename = "session_id")]
pub session_id: String,
}
impl FlowInspectorPlan {
pub fn new(current_stage: models::FlowStageBinding, next_planned_stage: models::FlowStageBinding, plan_context: std::collections::HashMap<String, serde_json::Value>, session_id: String) -> FlowInspectorPlan {
FlowInspectorPlan {
current_stage: Box::new(current_stage),
next_planned_stage: Box::new(next_planned_stage),
plan_context,
session_id,
}
}
}