use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PricePerTimeWithoutTraffic {
#[serde(rename = "location")]
pub location: String,
#[serde(rename = "price_hourly")]
pub price_hourly: Box<models::Price>,
#[serde(rename = "price_monthly")]
pub price_monthly: Box<models::Price>,
}
impl PricePerTimeWithoutTraffic {
pub fn new(
location: String,
price_hourly: models::Price,
price_monthly: models::Price,
) -> PricePerTimeWithoutTraffic {
PricePerTimeWithoutTraffic {
location,
price_hourly: Box::new(price_hourly),
price_monthly: Box::new(price_monthly),
}
}
}