mistral-openapi-client 0.1.0

Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
Documentation
/*
 * Mistral AI API
 *
 * Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
 *
 * 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 BatchJobIn {
    #[serde(rename = "input_files", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub input_files: Option<Option<Vec<uuid::Uuid>>>,
    #[serde(rename = "requests", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub requests: Option<Option<Vec<models::BatchRequest>>>,
    /// The endpoint to be used for batch inference.
    #[serde(rename = "endpoint")]
    pub endpoint: models::ApiEndpoint,
    #[serde(rename = "model", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub model: Option<Option<String>>,
    #[serde(rename = "agent_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub agent_id: Option<Option<String>>,
    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<Option<std::collections::HashMap<String, String>>>,
    /// The timeout in hours for the batch inference job.
    #[serde(rename = "timeout_hours", skip_serializing_if = "Option::is_none")]
    pub timeout_hours: Option<i32>,
}

impl BatchJobIn {
    pub fn new(endpoint: models::ApiEndpoint) -> BatchJobIn {
        BatchJobIn {
            input_files: None,
            requests: None,
            endpoint,
            model: None,
            agent_id: None,
            metadata: None,
            timeout_hours: None,
        }
    }
}