windmill_api/models/
client_ip_diagnostics_configuration.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientIpDiagnosticsConfiguration {
17 #[serde(rename = "trusted_proxies")]
18 pub trusted_proxies: Box<models::ClientIpDiagnosticsConfigurationTrustedProxies>,
19 #[serde(rename = "trust_cloudflare")]
20 pub trust_cloudflare: Box<models::ClientIpDiagnosticsConfigurationTrustCloudflare>,
21 #[serde(rename = "client_ip_header")]
22 pub client_ip_header: Box<models::ClientIpDiagnosticsConfigurationTrustedProxies>,
23}
24
25impl ClientIpDiagnosticsConfiguration {
26 pub fn new(trusted_proxies: models::ClientIpDiagnosticsConfigurationTrustedProxies, trust_cloudflare: models::ClientIpDiagnosticsConfigurationTrustCloudflare, client_ip_header: models::ClientIpDiagnosticsConfigurationTrustedProxies) -> ClientIpDiagnosticsConfiguration {
28 ClientIpDiagnosticsConfiguration {
29 trusted_proxies: Box::new(trusted_proxies),
30 trust_cloudflare: Box::new(trust_cloudflare),
31 client_ip_header: Box::new(client_ip_header),
32 }
33 }
34}
35