windmill-api 1.893.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.893.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ClientIpDiagnosticsConfiguration : what the trust is built from; a value whose environment variable is set cannot be changed from the settings
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClientIpDiagnosticsConfiguration {
    #[serde(rename = "trusted_proxies")]
    pub trusted_proxies: Box<models::ClientIpDiagnosticsConfigurationTrustedProxies>,
    #[serde(rename = "trust_cloudflare")]
    pub trust_cloudflare: Box<models::ClientIpDiagnosticsConfigurationTrustCloudflare>,
    #[serde(rename = "client_ip_header")]
    pub client_ip_header: Box<models::ClientIpDiagnosticsConfigurationTrustedProxies>,
}

impl ClientIpDiagnosticsConfiguration {
    /// what the trust is built from; a value whose environment variable is set cannot be changed from the settings
    pub fn new(trusted_proxies: models::ClientIpDiagnosticsConfigurationTrustedProxies, trust_cloudflare: models::ClientIpDiagnosticsConfigurationTrustCloudflare, client_ip_header: models::ClientIpDiagnosticsConfigurationTrustedProxies) -> ClientIpDiagnosticsConfiguration {
        ClientIpDiagnosticsConfiguration {
            trusted_proxies: Box::new(trusted_proxies),
            trust_cloudflare: Box::new(trust_cloudflare),
            client_ip_header: Box::new(client_ip_header),
        }
    }
}