/*
 * 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 Size {
    #[serde(rename = "_value")]
    pub _value: i32,
    #[serde(rename = "_unit")]
    pub _unit: models::SizeUnit,
}

impl Size {
    pub fn new(_value: i32, _unit: models::SizeUnit) -> Size {
        Size { _value, _unit }
    }
}
