GoodMemGoodMem
ReferenceSdkRustTypes

ImageInfo

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

All types

Struct ImageInfo

goodmem::models::ImageInfo

Rendered image metadata for an OCR page.

pub struct ImageInfo {
    pub width_px: i32,
    pub height_px: i32,
    pub dpi: i32,
}

Fields

width_px

pub width_px: i32

Rendered image width in pixels Wire name: widthPx.

height_px

pub height_px: i32

Rendered image height in pixels Wire name: heightPx.

dpi

pub dpi: i32

Rendering DPI Wire name: dpi.

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

On this page