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

/// BidHistoryResponse : Response model for bid history.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BidHistoryResponse {
    #[serde(rename = "bid_fid")]
    pub bid_fid: String,
    /// List of historical events for this bid, ordered by timestamp
    #[serde(rename = "events")]
    pub events: Vec<models::BidHistoryEventModel>,
}

impl BidHistoryResponse {
    /// Response model for bid history.
    pub fn new(bid_fid: String, events: Vec<models::BidHistoryEventModel>) -> BidHistoryResponse {
        BidHistoryResponse { bid_fid, events }
    }
}
