pub struct LayoutDetail {
pub index: i64,
pub label: LayoutLabel,
pub bbox_2d: Option<[f64; 4]>,
pub content: Option<String>,
pub height: Option<i64>,
pub width: Option<i64>,
}Expand description
One element in a parsed document layout.
Fields§
§index: i64Element index.
label: LayoutLabelElement category.
bbox_2d: Option<[f64; 4]>Normalized [x1, y1, x2, y2] coordinates.
content: Option<String>Text, image URL, formula, or table HTML.
height: Option<i64>Source page height.
width: Option<i64>Source page width.
Trait Implementations§
Source§impl Clone for LayoutDetail
impl Clone for LayoutDetail
Source§fn clone(&self) -> LayoutDetail
fn clone(&self) -> LayoutDetail
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 LayoutDetail
impl Debug for LayoutDetail
Source§impl<'de> Deserialize<'de> for LayoutDetail
impl<'de> Deserialize<'de> for LayoutDetail
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 LayoutDetail
impl PartialEq for LayoutDetail
Source§impl Serialize for LayoutDetail
impl Serialize for LayoutDetail
impl StructuralPartialEq for LayoutDetail
Auto Trait Implementations§
impl Freeze for LayoutDetail
impl RefUnwindSafe for LayoutDetail
impl Send for LayoutDetail
impl Sync for LayoutDetail
impl Unpin for LayoutDetail
impl UnsafeUnpin for LayoutDetail
impl UnwindSafe for LayoutDetail
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