mistral_openapi_client/models/
ocr_table_object.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OcrTableObject {
16 #[serde(rename = "id")]
18 pub id: String,
19 #[serde(rename = "content")]
21 pub content: String,
22 #[serde(rename = "format")]
24 pub format: Format,
25}
26
27impl OcrTableObject {
28 pub fn new(id: String, content: String, format: Format) -> OcrTableObject {
29 OcrTableObject {
30 id,
31 content,
32 format,
33 }
34 }
35}
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum Format {
39 #[serde(rename = "markdown")]
40 Markdown,
41 #[serde(rename = "html")]
42 Html,
43}
44
45impl Default for Format {
46 fn default() -> Format {
47 Self::Markdown
48 }
49}
50