uapi_sdk_rust/models/generated/
post_image_ocr_200_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PostImageOcr200Response {
16 #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
18 pub text: Option<String>,
19 #[serde(rename = "plain_text", skip_serializing_if = "Option::is_none")]
21 pub plain_text: Option<String>,
22 #[serde(rename = "markdown", skip_serializing_if = "Option::is_none")]
24 pub markdown: Option<String>,
25 #[serde(rename = "words_result", skip_serializing_if = "Option::is_none")]
27 pub words_result: Option<Vec<models::PostImageOcr200ResponseWordsResultInner>>,
28 #[serde(rename = "words_result_num", skip_serializing_if = "Option::is_none")]
30 pub words_result_num: Option<i32>,
31 #[serde(rename = "need_location", skip_serializing_if = "Option::is_none")]
33 pub need_location: Option<bool>,
34 #[serde(rename = "timing", skip_serializing_if = "Option::is_none")]
36 pub timing: Option<serde_json::Value>,
37 #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
39 pub summary: Option<serde_json::Value>,
40 #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
42 pub image: Option<serde_json::Value>,
43 #[serde(rename = "lines", skip_serializing_if = "Option::is_none")]
45 pub lines: Option<Vec<serde_json::Value>>,
46 #[serde(rename = "blocks", skip_serializing_if = "Option::is_none")]
48 pub blocks: Option<Vec<serde_json::Value>>,
49 #[serde(rename = "pages", skip_serializing_if = "Option::is_none")]
51 pub pages: Option<Vec<serde_json::Value>>,
52 #[serde(rename = "raw", skip_serializing_if = "Option::is_none")]
54 pub raw: Option<serde_json::Value>,
55}
56
57impl PostImageOcr200Response {
58 pub fn new() -> PostImageOcr200Response {
59 PostImageOcr200Response {
60 text: None,
61 plain_text: None,
62 markdown: None,
63 words_result: None,
64 words_result_num: None,
65 need_location: None,
66 timing: None,
67 summary: None,
68 image: None,
69 lines: None,
70 blocks: None,
71 pages: None,
72 raw: None,
73 }
74 }
75}
76