hcloud 0.25.0

Unofficial Rust crate for accessing the Hetzner Cloud API
Documentation
/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.28.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ServerPrivateNet {
    /// Additional IP addresses of the server on the network.
    #[serde(rename = "alias_ips", skip_serializing_if = "Option::is_none")]
    pub alias_ips: Option<Vec<String>>,
    /// The server IP address on the network.
    #[serde(rename = "ip", skip_serializing_if = "Option::is_none")]
    pub ip: Option<String>,
    /// The server MAC address on the network.
    #[serde(rename = "mac_address", skip_serializing_if = "Option::is_none")]
    pub mac_address: Option<String>,
    /// The Network ID the server is attached to.
    #[serde(rename = "network", skip_serializing_if = "Option::is_none")]
    pub network: Option<i64>,
}

impl ServerPrivateNet {
    pub fn new() -> ServerPrivateNet {
        ServerPrivateNet {
            alias_ips: None,
            ip: None,
            mac_address: None,
            network: None,
        }
    }
}