pub struct ElementMetadata {
pub page: u32,
pub bbox: ElementBBox,
pub confidence: f64,
pub font_name: Option<String>,
pub font_size: Option<f64>,
pub is_bold: bool,
pub is_italic: bool,
pub parent_heading: Option<String>,
pub heading_path: Vec<String>,
}Expand description
Metadata common to all element types.
Fields§
§page: u32Page number (0-indexed).
bbox: ElementBBoxBounding box on the page.
confidence: f64Classification confidence (0.0–1.0).
font_name: Option<String>Font name if detected.
font_size: Option<f64>Font size in points if detected.
is_bold: boolWhether the text is bold.
is_italic: boolWhether the text is italic.
parent_heading: Option<String>The text of the nearest preceding Title element, if any.
heading_path: Vec<String>Full ancestor heading breadcrumb, root→leaf. Empty if outside any heading.
Trait Implementations§
Source§impl Clone for ElementMetadata
impl Clone for ElementMetadata
Source§fn clone(&self) -> ElementMetadata
fn clone(&self) -> ElementMetadata
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 ElementMetadata
impl Debug for ElementMetadata
Auto Trait Implementations§
impl Freeze for ElementMetadata
impl RefUnwindSafe for ElementMetadata
impl Send for ElementMetadata
impl Sync for ElementMetadata
impl Unpin for ElementMetadata
impl UnsafeUnpin for ElementMetadata
impl UnwindSafe for ElementMetadata
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