/*
 * 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 AvailabilitySlotModel {
    #[serde(rename = "start_time")]
    pub start_time: String,
    #[serde(rename = "end_time")]
    pub end_time: String,
    #[serde(rename = "quantity")]
    pub quantity: i32,
}

impl AvailabilitySlotModel {
    pub fn new(start_time: String, end_time: String, quantity: i32) -> AvailabilitySlotModel {
        AvailabilitySlotModel {
            start_time,
            end_time,
            quantity,
        }
    }
}
