authentik_client/models/
flow_inspector_plan.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowInspectorPlan {
17 #[serde(rename = "current_stage")]
18 pub current_stage: models::FlowStageBinding,
19 #[serde(rename = "next_planned_stage")]
20 pub next_planned_stage: models::FlowStageBinding,
21 #[serde(rename = "plan_context")]
23 pub plan_context: std::collections::HashMap<String, serde_json::Value>,
24 #[serde(rename = "session_id")]
26 pub session_id: String,
27}
28
29impl FlowInspectorPlan {
30 pub fn new(
32 current_stage: models::FlowStageBinding,
33 next_planned_stage: models::FlowStageBinding,
34 plan_context: std::collections::HashMap<String, serde_json::Value>,
35 session_id: String,
36 ) -> FlowInspectorPlan {
37 FlowInspectorPlan {
38 current_stage,
39 next_planned_stage,
40 plan_context,
41 session_id,
42 }
43 }
44}