Skip to main content

mistral_openapi_client/models/
process_status.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/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum ProcessStatus {
17    #[serde(rename = "self_managed")]
18    SelfManaged,
19    #[serde(rename = "missing_content")]
20    MissingContent,
21    #[serde(rename = "noop")]
22    Noop,
23    #[serde(rename = "done")]
24    Done,
25    #[serde(rename = "todo")]
26    Todo,
27    #[serde(rename = "in_progress")]
28    InProgress,
29    #[serde(rename = "error")]
30    Error,
31    #[serde(rename = "waiting_for_capacity")]
32    WaitingForCapacity,
33
34}
35
36impl std::fmt::Display for ProcessStatus {
37    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
38        match self {
39            Self::SelfManaged => write!(f, "self_managed"),
40            Self::MissingContent => write!(f, "missing_content"),
41            Self::Noop => write!(f, "noop"),
42            Self::Done => write!(f, "done"),
43            Self::Todo => write!(f, "todo"),
44            Self::InProgress => write!(f, "in_progress"),
45            Self::Error => write!(f, "error"),
46            Self::WaitingForCapacity => write!(f, "waiting_for_capacity"),
47        }
48    }
49}
50
51impl Default for ProcessStatus {
52    fn default() -> ProcessStatus {
53        Self::SelfManaged
54    }
55}
56