#[non_exhaustive]pub struct PageReport {
pub page_index: i32,
pub ocr_source: OcrSource,
pub ocr_backend: Option<String>,
pub confidence: Option<f32>,
pub low_confidence: bool,
pub column_count: u32,
pub ocr_word_count: usize,
pub ocr_mean_confidence: Option<f32>,
}Expand description
Per-page OCR/layout provenance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page_index: i32Zero-based page index.
ocr_source: OcrSourceExtraction path used for this page.
ocr_backend: Option<String>OCR backend name when OcrSource::Ocr produced the page.
confidence: Option<f32>Aggregated page confidence in 0.0..=1.0. None for vector PDF text.
low_confidence: boolTrue when confidence is present and below the configured threshold.
column_count: u32Detected text column count. 1 means single-column.
ocr_word_count: usizeNumber of OCR words with confidence for this page.
ocr_mean_confidence: Option<f32>Legacy percent-scale mean confidence for this page.
Trait Implementations§
Source§impl Clone for PageReport
impl Clone for PageReport
Source§fn clone(&self) -> PageReport
fn clone(&self) -> PageReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageReport
impl Debug for PageReport
Source§impl<'de> Deserialize<'de> for PageReport
impl<'de> Deserialize<'de> for PageReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PageReport
impl PartialEq for PageReport
Source§fn eq(&self, other: &PageReport) -> bool
fn eq(&self, other: &PageReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PageReport
impl Serialize for PageReport
impl StructuralPartialEq for PageReport
Auto Trait Implementations§
impl Freeze for PageReport
impl RefUnwindSafe for PageReport
impl Send for PageReport
impl Sync for PageReport
impl Unpin for PageReport
impl UnsafeUnpin for PageReport
impl UnwindSafe for PageReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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