Skip to main content

authentik_client/models/
patched_reputation_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/// PatchedReputationPolicyRequest : Reputation Policy Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedReputationPolicyRequest {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<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 = "check_ip", skip_serializing_if = "Option::is_none")]
23    pub check_ip: Option<bool>,
24    #[serde(rename = "check_username", skip_serializing_if = "Option::is_none")]
25    pub check_username: Option<bool>,
26    #[serde(rename = "threshold", skip_serializing_if = "Option::is_none")]
27    pub threshold: Option<i32>,
28}
29
30impl PatchedReputationPolicyRequest {
31    /// Reputation Policy Serializer
32    pub fn new() -> PatchedReputationPolicyRequest {
33        PatchedReputationPolicyRequest {
34            name: None,
35            execution_logging: None,
36            check_ip: None,
37            check_username: None,
38            threshold: None,
39        }
40    }
41}