authentik_rust/models/
patched_reputation_policy_request.rs1use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedReputationPolicyRequest {
16 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17 pub name: Option<String>,
18 #[serde(rename = "execution_logging", skip_serializing_if = "Option::is_none")]
20 pub execution_logging: Option<bool>,
21 #[serde(rename = "check_ip", skip_serializing_if = "Option::is_none")]
22 pub check_ip: Option<bool>,
23 #[serde(rename = "check_username", skip_serializing_if = "Option::is_none")]
24 pub check_username: Option<bool>,
25 #[serde(rename = "threshold", skip_serializing_if = "Option::is_none")]
26 pub threshold: Option<i32>,
27}
28
29impl PatchedReputationPolicyRequest {
30 pub fn new() -> PatchedReputationPolicyRequest {
32 PatchedReputationPolicyRequest {
33 name: None,
34 execution_logging: None,
35 check_ip: None,
36 check_username: None,
37 threshold: None,
38 }
39 }
40}
41