ReferenceSdkRustTypes
OcrCell
Rust struct goodmem::models::OcrCell: declaration, fields or variants, and implementations.
Struct OcrCell
goodmem::models::OcrCell
Single OCR layout element.
pub struct OcrCell {
pub bbox: Option<Box<BoundingBox>>,
pub category_label: String,
pub category: OcrCategory,
pub text: String,
}Referenced types: BoundingBox, OcrCategory.
Fields
bbox
pub bbox: Option<Box<BoundingBox>>
Bounding box in page coordinates
Wire name: bbox.
category_label
pub category_label: String
Raw category label emitted by OCR
Wire name: categoryLabel.
category
pub category: OcrCategory
Normalized OCR category
Wire name: category.
text
pub text: String
OCR text content
Wire name: text.
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 OcrCellimpl std::fmt::Debug for OcrCell