pub struct ExtractedDocument {
pub file_name: String,
pub content_type: String,
pub format: DocumentFormat,
pub text: String,
pub characters: usize,
pub truncated: bool,
}Expand description
Successfully extracted normalized text and metadata.
Fields§
§file_name: StringSafe display filename.
content_type: StringOriginal normalized media type.
format: DocumentFormatDetected document format.
text: StringNormalized, non-empty extracted text.
characters: usizeReturned Unicode character count.
truncated: boolWhether the character limit truncated the text.
Trait Implementations§
Source§impl Clone for ExtractedDocument
impl Clone for ExtractedDocument
Source§fn clone(&self) -> ExtractedDocument
fn clone(&self) -> ExtractedDocument
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 ExtractedDocument
impl Debug for ExtractedDocument
impl Eq for ExtractedDocument
Source§impl PartialEq for ExtractedDocument
impl PartialEq for ExtractedDocument
impl StructuralPartialEq for ExtractedDocument
Auto Trait Implementations§
impl Freeze for ExtractedDocument
impl RefUnwindSafe for ExtractedDocument
impl Send for ExtractedDocument
impl Sync for ExtractedDocument
impl Unpin for ExtractedDocument
impl UnsafeUnpin for ExtractedDocument
impl UnwindSafe for ExtractedDocument
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.