authentik_rust/models/
flow_inspection.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// FlowInspection : Serializer for inspect endpoint
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FlowInspection {
16    #[serde(rename = "plans")]
17    pub plans: Vec<models::FlowInspectorPlan>,
18    #[serde(rename = "current_plan", skip_serializing_if = "Option::is_none")]
19    pub current_plan: Option<Box<models::FlowInspectorPlan>>,
20    #[serde(rename = "is_completed")]
21    pub is_completed: bool,
22}
23
24impl FlowInspection {
25    /// Serializer for inspect endpoint
26    pub fn new(plans: Vec<models::FlowInspectorPlan>, is_completed: bool) -> FlowInspection {
27        FlowInspection {
28            plans,
29            current_plan: None,
30            is_completed,
31        }
32    }
33}
34