GoodMemGoodMem
ReferenceSdkRustTypes

OcrPage

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

All types

Struct OcrPage

goodmem::models::OcrPage

OCR output for a single page.

pub struct OcrPage {
    pub raw_json: Option<String>,
    pub markdown: Option<String>,
    pub layout: Box<OcrLayout>,
    pub timings: Box<PageTimings>,
    pub image: Box<ImageInfo>,
}

Referenced types: ImageInfo, OcrLayout, PageTimings.

Fields

raw_json

pub raw_json: Option<String>

Raw OCR JSON payload when requested Wire name: rawJson.

markdown

pub markdown: Option<String>

Markdown rendering when requested Wire name: markdown.

layout

pub layout: Box<OcrLayout>

Parsed layout output Wire name: layout.

timings

pub timings: Box<PageTimings>

Timing breakdown for the page Wire name: timings.

image

pub image: Box<ImageInfo>

Rendered image metadata Wire name: image.

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

On this page