hcloud/models/
load_balancer_private_net.rs

1/*
2 * Hetzner Cloud API
3 *
4 * Copied from the official API documentation for the Public Hetzner Cloud.
5 *
6 * The version of the OpenAPI document: 0.26.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LoadBalancerPrivateNet {
16    /// IP address (v4) of this Load Balancer in this Network.
17    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
18    pub ip: Option<String>,
19    /// ID of the Network.
20    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
21    pub network: Option<i64>,
22}
23
24impl LoadBalancerPrivateNet {
25    pub fn new() -> LoadBalancerPrivateNet {
26        LoadBalancerPrivateNet {
27            ip: None,
28            network: None,
29        }
30    }
31}