pub struct Element {
pub id: String,
pub element_type: ElementType,
pub page: String,
pub bbox: QRect,
pub text: Option<String>,
pub heading_level: Option<u8>,
pub table_ref: Option<String>,
pub region_ref: Option<String>,
pub confidence: Option<u16>,
pub span_refs: Vec<String>,
pub warning_refs: Vec<String>,
}Expand description
A layout element.
Fields§
§id: Stringe%06d, reading order.
element_type: ElementTypeElement type.
page: StringOwning page id.
bbox: QRectBounding box.
text: Option<String>Text, when applicable. Preserved exactly as extracted.
heading_level: Option<u8>Heading level (1–9) for headings.
table_ref: Option<String>Table reference for table anchors.
region_ref: Option<String>Region reference for region anchors.
confidence: Option<u16>Heuristic confidence, integer per-mille.
span_refs: Vec<String>Owned spans.
warning_refs: Vec<String>Attached warnings.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Element
impl<'de> Deserialize<'de> for Element
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
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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