Skip to main content

mistral_openapi_client/models/
job_metadata_out.rs

1/*
2 * Mistral AI API
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct JobMetadataOut {
16    #[serde(rename = "expected_duration_seconds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub expected_duration_seconds: Option<Option<i32>>,
18    #[serde(rename = "cost", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub cost: Option<Option<f64>>,
20    #[serde(rename = "cost_currency", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub cost_currency: Option<Option<String>>,
22    #[serde(rename = "train_tokens_per_step", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub train_tokens_per_step: Option<Option<i32>>,
24    #[serde(rename = "train_tokens", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub train_tokens: Option<Option<i32>>,
26    #[serde(rename = "data_tokens", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub data_tokens: Option<Option<i32>>,
28    #[serde(rename = "estimated_start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub estimated_start_time: Option<Option<i32>>,
30}
31
32impl JobMetadataOut {
33    pub fn new() -> JobMetadataOut {
34        JobMetadataOut {
35            expected_duration_seconds: None,
36            cost: None,
37            cost_currency: None,
38            train_tokens_per_step: None,
39            train_tokens: None,
40            data_tokens: None,
41            estimated_start_time: None,
42        }
43    }
44}
45