Skip to main content

mistral_openapi_client/models/
checkpoint_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 CheckpointOut {
16    #[serde(rename = "metrics")]
17    pub metrics: Box<models::MetricOut>,
18    /// The step number that the checkpoint was created at.
19    #[serde(rename = "step_number")]
20    pub step_number: i32,
21    /// The UNIX timestamp (in seconds) for when the checkpoint was created.
22    #[serde(rename = "created_at")]
23    pub created_at: i32,
24}
25
26impl CheckpointOut {
27    pub fn new(metrics: models::MetricOut, step_number: i32, created_at: i32) -> CheckpointOut {
28        CheckpointOut {
29            metrics: Box::new(metrics),
30            step_number,
31            created_at,
32        }
33    }
34}
35