pub struct PagesExtractionResult {
pub pages: Vec<PageMarkdown>,
pub pages_with_tables: Vec<u32>,
pub pages_with_columns: Vec<u32>,
pub pages_needing_ocr: Vec<u32>,
pub ocr_reasons_by_page: Vec<PageOcrReasons>,
pub is_complex: bool,
}Expand description
Combined per-page markdown extraction and layout classification result.
Fields§
§pages: Vec<PageMarkdown>Per-page markdown results.
pages_with_tables: Vec<u32>1-indexed pages where tables were detected.
pages_with_columns: Vec<u32>1-indexed pages where multi-column layout was detected.
pages_needing_ocr: Vec<u32>1-indexed pages that need OCR (scanned/image-based).
ocr_reasons_by_page: Vec<PageOcrReasons>Machine-readable OCR reasons by 1-indexed page.
is_complex: boolTrue if any page has tables or columns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PagesExtractionResult
impl RefUnwindSafe for PagesExtractionResult
impl Send for PagesExtractionResult
impl Sync for PagesExtractionResult
impl Unpin for PagesExtractionResult
impl UnsafeUnpin for PagesExtractionResult
impl UnwindSafe for PagesExtractionResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more