authentik_client/models/
flow_inspection.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 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}