Skip to main content

authentik_client/models/
flow_inspection.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/// FlowInspection : Serializer for inspect endpoint
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowInspection {
17    #[serde(rename = "plans")]
18    pub plans: Vec<models::FlowInspectorPlan>,
19    #[serde(rename = "current_plan", skip_serializing_if = "Option::is_none")]
20    pub current_plan: Option<models::FlowInspectorPlan>,
21    #[serde(rename = "is_completed")]
22    pub is_completed: bool,
23}
24
25impl FlowInspection {
26    /// Serializer for inspect endpoint
27    pub fn new(plans: Vec<models::FlowInspectorPlan>, is_completed: bool) -> FlowInspection {
28        FlowInspection {
29            plans,
30            current_plan: None,
31            is_completed,
32        }
33    }
34}