Skip to main content

authentik_client/models/
dummy_policy_request.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/// DummyPolicyRequest : Dummy Policy Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DummyPolicyRequest {
17    #[serde(rename = "name")]
18    pub name: String,
19    /// When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
20    #[serde(rename = "execution_logging", skip_serializing_if = "Option::is_none")]
21    pub execution_logging: Option<bool>,
22    #[serde(rename = "result", skip_serializing_if = "Option::is_none")]
23    pub result: Option<bool>,
24    #[serde(rename = "wait_min", skip_serializing_if = "Option::is_none")]
25    pub wait_min: Option<i32>,
26    #[serde(rename = "wait_max", skip_serializing_if = "Option::is_none")]
27    pub wait_max: Option<i32>,
28}
29
30impl DummyPolicyRequest {
31    /// Dummy Policy Serializer
32    pub fn new(name: String) -> DummyPolicyRequest {
33        DummyPolicyRequest {
34            name,
35            execution_logging: None,
36            result: None,
37            wait_min: None,
38            wait_max: None,
39        }
40    }
41}