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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClientIpDiagnosticsConfigurationTrustedProxies {
    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub value: Option<Option<String>>,
    #[serde(rename = "from_env")]
    pub from_env: bool,
}

impl ClientIpDiagnosticsConfigurationTrustedProxies {
    pub fn new(from_env: bool) -> ClientIpDiagnosticsConfigurationTrustedProxies {
        ClientIpDiagnosticsConfigurationTrustedProxies {
            value: None,
            from_env,
        }
    }
}