OcrDocumentRequest
Rust struct goodmem::models::OcrDocumentRequest: declaration, fields or variants, and implementations.
Struct OcrDocumentRequest
goodmem::models::OcrDocumentRequest
Request body for OCR document processing.
pub struct OcrDocumentRequest {
pub content: Option<String>,
pub format: Option<OcrInputFormat>,
pub include_raw_json: Option<bool>,
pub include_markdown: Option<bool>,
pub start_page: Option<i32>,
pub end_page: Option<i32>,
}Referenced types: OcrInputFormat.
Fields
content
pub content: Option<String>
Base64-encoded document bytes
Wire name: content.
format
pub format: Option<OcrInputFormat>
Input format hint (AUTO, PDF, TIFF, PNG, JPEG, BMP)
Wire name: format.
include_raw_json
pub include_raw_json: Option<bool>
Include raw OCR JSON payload in the response
Wire name: includeRawJson.
include_markdown
pub include_markdown: Option<bool>
Include markdown rendering in the response
Wire name: includeMarkdown.
start_page
pub start_page: Option<i32>
0-based inclusive start page
Wire name: startPage.
end_page
pub end_page: Option<i32>
0-based inclusive end page
Wire name: endPage.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for OcrDocumentRequestimpl std::fmt::Debug for OcrDocumentRequest