mistral_openapi_client/models/
encoding_format.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum EncodingFormat {
17 #[serde(rename = "float")]
18 Float,
19 #[serde(rename = "base64")]
20 Base64,
21
22}
23
24impl std::fmt::Display for EncodingFormat {
25 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
26 match self {
27 Self::Float => write!(f, "float"),
28 Self::Base64 => write!(f, "base64"),
29 }
30 }
31}
32
33impl Default for EncodingFormat {
34 fn default() -> EncodingFormat {
35 Self::Float
36 }
37}
38