pub struct DocExtractOptions {
pub output: DocOutputFormat,
pub include_tables: bool,
pub include_formulas: bool,
pub include_bboxes: bool,
}Expand description
Options for a DocumentExtractionModel::extract call.
Fields§
§output: DocOutputFormatDesired primary output format. The plain_markdown field on
DocExtractResult is always populated; this controls the
in-block content string format for non-text block kinds.
include_tables: boolWhether to extract table blocks (some models skip tables for speed).
include_formulas: boolWhether to extract math formulas (some models skip formulas for speed).
include_bboxes: boolWhether to populate per-block bounding boxes (extra work for some VLMs).
Trait Implementations§
Source§impl Clone for DocExtractOptions
impl Clone for DocExtractOptions
Source§fn clone(&self) -> DocExtractOptions
fn clone(&self) -> DocExtractOptions
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 moreAuto Trait Implementations§
impl Freeze for DocExtractOptions
impl RefUnwindSafe for DocExtractOptions
impl Send for DocExtractOptions
impl Sync for DocExtractOptions
impl Unpin for DocExtractOptions
impl UnsafeUnpin for DocExtractOptions
impl UnwindSafe for DocExtractOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more