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, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProcessStatus {
    #[serde(rename = "self_managed")]
    SelfManaged,
    #[serde(rename = "missing_content")]
    MissingContent,
    #[serde(rename = "noop")]
    Noop,
    #[serde(rename = "done")]
    Done,
    #[serde(rename = "todo")]
    Todo,
    #[serde(rename = "in_progress")]
    InProgress,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "waiting_for_capacity")]
    WaitingForCapacity,

}

impl std::fmt::Display for ProcessStatus {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::SelfManaged => write!(f, "self_managed"),
            Self::MissingContent => write!(f, "missing_content"),
            Self::Noop => write!(f, "noop"),
            Self::Done => write!(f, "done"),
            Self::Todo => write!(f, "todo"),
            Self::InProgress => write!(f, "in_progress"),
            Self::Error => write!(f, "error"),
            Self::WaitingForCapacity => write!(f, "waiting_for_capacity"),
        }
    }
}

impl Default for ProcessStatus {
    fn default() -> ProcessStatus {
        Self::SelfManaged
    }
}