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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResponseGetAvailabilityV2ReservationAvailabilityGet {
    #[serde(rename = "latest_end_time")]
    pub latest_end_time: String,
    #[serde(rename = "available")]
    pub available: bool,
}

impl ResponseGetAvailabilityV2ReservationAvailabilityGet {
    pub fn new(latest_end_time: String, available: bool) -> ResponseGetAvailabilityV2ReservationAvailabilityGet {
        ResponseGetAvailabilityV2ReservationAvailabilityGet {
            latest_end_time,
            available,
        }
    }
}

