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

/// ReplaceFloatingIpResponse : Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReplaceFloatingIpResponse {
    #[serde(rename = "floating_ip")]
    pub floating_ip: Box<models::FloatingIp>,
}

impl ReplaceFloatingIpResponse {
    /// Response to PUT https://api.hetzner.cloud/v1/floating_ips/{id}
    pub fn new(floating_ip: models::FloatingIp) -> ReplaceFloatingIpResponse {
        ReplaceFloatingIpResponse {
            floating_ip: Box::new(floating_ip),
        }
    }
}