GoodMemGoodMem
ReferenceSdkRustTypes

OcrDocumentResponse

Rust struct goodmem::models::OcrDocumentResponse: declaration, fields or variants, and implementations.

All types

Struct OcrDocumentResponse

goodmem::models::OcrDocumentResponse

Response containing page-ordered OCR results.

pub struct OcrDocumentResponse {
    pub detected_format: OcrInputFormat,
    pub page_count: i32,
    pub pages: Vec<OcrPageResult>,
    pub timings: Box<DocumentTimings>,
}

Referenced types: DocumentTimings, OcrInputFormat, OcrPageResult.

Fields

detected_format

pub detected_format: OcrInputFormat

Detected input format Wire name: detectedFormat.

page_count

pub page_count: i32

Number of pages processed after applying the range Wire name: pageCount.

pages

pub pages: Vec<OcrPageResult>

Ordered per-page OCR results Wire name: pages.

timings

pub timings: Box<DocumentTimings>

Aggregate timing statistics Wire name: timings.

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 OcrDocumentResponse
  • impl std::fmt::Debug for OcrDocumentResponse

On this page