pub struct PdfClassification {
pub pdf_type: PdfType,
pub page_count: u32,
pub pages_needing_ocr: Vec<u32>,
pub confidence: f32,
}Expand description
Lightweight classification result for routing decisions.
Fields§
§pdf_type: PdfTypeThe detected PDF type.
page_count: u32Total page count.
pages_needing_ocr: Vec<u32>0-indexed page numbers that need OCR (scanned/image pages).
confidence: f32Detection confidence score (0.0–1.0).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfClassification
impl RefUnwindSafe for PdfClassification
impl Send for PdfClassification
impl Sync for PdfClassification
impl Unpin for PdfClassification
impl UnsafeUnpin for PdfClassification
impl UnwindSafe for PdfClassification
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