Skip to main content

authentik_client/models/
flow_inspector_plan.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FlowInspectorPlan : Serializer for an active FlowPlan
15#[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    /// Get the plan's context, sanitized
22    #[serde(rename = "plan_context")]
23    pub plan_context: std::collections::HashMap<String, serde_json::Value>,
24    /// Get a unique session ID
25    #[serde(rename = "session_id")]
26    pub session_id: String,
27}
28
29impl FlowInspectorPlan {
30    /// Serializer for an active FlowPlan
31    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}