use crate::models;
use serde::{Deserialize, Serialize};
#[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 {
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),
}
}
}