#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct LoadBalancerType {
#[serde(rename = "deprecated")]
pub deprecated: Option<String>,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "id")]
pub id: i32,
#[serde(rename = "max_assigned_certificates")]
pub max_assigned_certificates: i32,
#[serde(rename = "max_connections")]
pub max_connections: i32,
#[serde(rename = "max_services")]
pub max_services: i32,
#[serde(rename = "max_targets")]
pub max_targets: i32,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "prices")]
pub prices: Vec<crate::models::PricePerTime>,
}
impl LoadBalancerType {
#![allow(clippy::too_many_arguments)]
pub fn new(
deprecated: Option<String>,
description: String,
id: i32,
max_assigned_certificates: i32,
max_connections: i32,
max_services: i32,
max_targets: i32,
name: String,
prices: Vec<crate::models::PricePerTime>,
) -> LoadBalancerType {
LoadBalancerType {
deprecated,
description,
id,
max_assigned_certificates,
max_connections,
max_services,
max_targets,
name,
prices,
}
}
}