/*
 * 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 CreateApiKeyRequest {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "expires_at")]
    pub expires_at: String,
}

impl CreateApiKeyRequest {
    pub fn new(name: String, expires_at: String) -> CreateApiKeyRequest {
        CreateApiKeyRequest { name, expires_at }
    }
}
