pub struct ExtractTextResult {
pub text: String,
pub page_count: i32,
pub pages: Option<Vec<HashMap<String, Value>>>,
pub truncated: Option<bool>,
}Expand description
ExtractTextResult : Extracted text + structural metadata from a PDF (or other extraction-supported file type). pages is provider-shaped — treat as an opaque per-page object array. Endpoint returns 422 with code: extraction_unsupported when the underlying file isn’t extractable.
Fields§
§text: String§page_count: i32§pages: Option<Vec<HashMap<String, Value>>>§truncated: Option<bool>true when maxChars was hit before the end.
Implementations§
Source§impl ExtractTextResult
impl ExtractTextResult
Sourcepub fn new(text: String, page_count: i32) -> ExtractTextResult
pub fn new(text: String, page_count: i32) -> ExtractTextResult
Extracted text + structural metadata from a PDF (or other extraction-supported file type). pages is provider-shaped — treat as an opaque per-page object array. Endpoint returns 422 with code: extraction_unsupported when the underlying file isn’t extractable.
Trait Implementations§
Source§impl Clone for ExtractTextResult
impl Clone for ExtractTextResult
Source§fn clone(&self) -> ExtractTextResult
fn clone(&self) -> ExtractTextResult
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 ExtractTextResult
impl Debug for ExtractTextResult
Source§impl Default for ExtractTextResult
impl Default for ExtractTextResult
Source§fn default() -> ExtractTextResult
fn default() -> ExtractTextResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtractTextResult
impl<'de> Deserialize<'de> for ExtractTextResult
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 ExtractTextResult
impl PartialEq for ExtractTextResult
Source§fn eq(&self, other: &ExtractTextResult) -> bool
fn eq(&self, other: &ExtractTextResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtractTextResult
impl Serialize for ExtractTextResult
impl StructuralPartialEq for ExtractTextResult
Auto Trait Implementations§
impl Freeze for ExtractTextResult
impl RefUnwindSafe for ExtractTextResult
impl Send for ExtractTextResult
impl Sync for ExtractTextResult
impl Unpin for ExtractTextResult
impl UnsafeUnpin for ExtractTextResult
impl UnwindSafe for ExtractTextResult
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