/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// HistoricalPricesResponseModel : Response model for historical pricing data.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HistoricalPricesResponseModel {
    /// List of historical price points
    #[serde(rename = "prices")]
    pub prices: Vec<models::HistoricalPricePointModel>,
}

impl HistoricalPricesResponseModel {
    /// Response model for historical pricing data.
    pub fn new(prices: Vec<models::HistoricalPricePointModel>) -> HistoricalPricesResponseModel {
        HistoricalPricesResponseModel { prices }
    }
}
