use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PostImageOcr200Response {
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
pub text: Option<String>,
#[serde(rename = "plain_text", skip_serializing_if = "Option::is_none")]
pub plain_text: Option<String>,
#[serde(rename = "markdown", skip_serializing_if = "Option::is_none")]
pub markdown: Option<String>,
#[serde(rename = "words_result", skip_serializing_if = "Option::is_none")]
pub words_result: Option<Vec<models::PostImageOcr200ResponseWordsResultInner>>,
#[serde(rename = "words_result_num", skip_serializing_if = "Option::is_none")]
pub words_result_num: Option<i32>,
#[serde(rename = "need_location", skip_serializing_if = "Option::is_none")]
pub need_location: Option<bool>,
#[serde(rename = "timing", skip_serializing_if = "Option::is_none")]
pub timing: Option<serde_json::Value>,
#[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
pub summary: Option<serde_json::Value>,
#[serde(rename = "image", skip_serializing_if = "Option::is_none")]
pub image: Option<serde_json::Value>,
#[serde(rename = "lines", skip_serializing_if = "Option::is_none")]
pub lines: Option<Vec<serde_json::Value>>,
#[serde(rename = "blocks", skip_serializing_if = "Option::is_none")]
pub blocks: Option<Vec<serde_json::Value>>,
#[serde(rename = "pages", skip_serializing_if = "Option::is_none")]
pub pages: Option<Vec<serde_json::Value>>,
#[serde(rename = "raw", skip_serializing_if = "Option::is_none")]
pub raw: Option<serde_json::Value>,
}
impl PostImageOcr200Response {
pub fn new() -> PostImageOcr200Response {
PostImageOcr200Response {
text: None,
plain_text: None,
markdown: None,
words_result: None,
words_result_num: None,
need_location: None,
timing: None,
summary: None,
image: None,
lines: None,
blocks: None,
pages: None,
raw: None,
}
}
}