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