Skip to main content

windmill_api/models/
client_ip_diagnostics_configuration.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.894.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ClientIpDiagnosticsConfiguration : what the trust is built from; a value whose environment variable is set cannot be changed from the settings
15#[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    /// what the trust is built from; a value whose environment variable is set cannot be changed from the settings
27    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