pub struct PdfBlockItem {
pub id: String,
pub block_type: String,
pub label: Option<String>,
pub bbox: Option<[f64; 4]>,
pub content: String,
pub markdown_span: Option<[i64; 2]>,
pub reading_order: i64,
pub source: Option<String>,
pub confidence: PdfBlockConfidence,
}Expand description
A typed PDF layout block (bounding box, type, reading order).
Fields§
§id: String§block_type: String§label: Option<String>§bbox: Option<[f64; 4]>§content: String§markdown_span: Option<[i64; 2]>§reading_order: i64§source: Option<String>§confidence: PdfBlockConfidenceTrait Implementations§
Source§impl Clone for PdfBlockItem
impl Clone for PdfBlockItem
Source§fn clone(&self) -> PdfBlockItem
fn clone(&self) -> PdfBlockItem
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 PdfBlockItem
impl Debug for PdfBlockItem
Source§impl Default for PdfBlockItem
impl Default for PdfBlockItem
Source§fn default() -> PdfBlockItem
fn default() -> PdfBlockItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PdfBlockItem
impl<'de> Deserialize<'de> for PdfBlockItem
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
Auto Trait Implementations§
impl Freeze for PdfBlockItem
impl RefUnwindSafe for PdfBlockItem
impl Send for PdfBlockItem
impl Sync for PdfBlockItem
impl Unpin for PdfBlockItem
impl UnsafeUnpin for PdfBlockItem
impl UnwindSafe for PdfBlockItem
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