pub struct OcrPageObject {
pub index: i32,
pub markdown: String,
pub images: Vec<OcrImageObject>,
pub tables: Option<Vec<OcrTableObject>>,
pub hyperlinks: Option<Vec<String>>,
pub header: Option<Option<String>>,
pub footer: Option<Option<String>>,
pub dimensions: Option<Box<OcrPageDimensions>>,
}Fields§
§index: i32The page index in a pdf document starting from 0
markdown: StringThe markdown string response of the page
images: Vec<OcrImageObject>List of all extracted images in the page
tables: Option<Vec<OcrTableObject>>List of all extracted tables in the page
hyperlinks: Option<Vec<String>>List of all hyperlinks in the page
header: Option<Option<String>>§dimensions: Option<Box<OcrPageDimensions>>Implementations§
Source§impl OcrPageObject
impl OcrPageObject
pub fn new( index: i32, markdown: String, images: Vec<OcrImageObject>, dimensions: Option<OcrPageDimensions>, ) -> OcrPageObject
Trait Implementations§
Source§impl Clone for OcrPageObject
impl Clone for OcrPageObject
Source§fn clone(&self) -> OcrPageObject
fn clone(&self) -> OcrPageObject
Returns a duplicate of the value. Read more
1.0.0 · 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 OcrPageObject
impl Debug for OcrPageObject
Source§impl Default for OcrPageObject
impl Default for OcrPageObject
Source§fn default() -> OcrPageObject
fn default() -> OcrPageObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OcrPageObject
impl<'de> Deserialize<'de> for OcrPageObject
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 OcrPageObject
impl PartialEq for OcrPageObject
Source§impl Serialize for OcrPageObject
impl Serialize for OcrPageObject
impl StructuralPartialEq for OcrPageObject
Auto Trait Implementations§
impl Freeze for OcrPageObject
impl RefUnwindSafe for OcrPageObject
impl Send for OcrPageObject
impl Sync for OcrPageObject
impl Unpin for OcrPageObject
impl UnsafeUnpin for OcrPageObject
impl UnwindSafe for OcrPageObject
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