use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateFloatingIpResponse {
#[serde(rename = "action", skip_serializing_if = "Option::is_none")]
pub action: Option<Box<models::Action>>,
#[serde(rename = "floating_ip")]
pub floating_ip: Box<models::FloatingIp>,
}
impl CreateFloatingIpResponse {
pub fn new(floating_ip: models::FloatingIp) -> CreateFloatingIpResponse {
CreateFloatingIpResponse {
action: None,
floating_ip: Box::new(floating_ip),
}
}
}