pub struct Options {
pub format: OutputFormat,
pub max_output_chars: usize,
pub max_pages: usize,
pub max_sheets: usize,
pub max_rows: usize,
pub max_cols: usize,
pub max_cells: usize,
pub max_zip_entries: usize,
pub max_decompressed_bytes: u64,
}Expand description
Extraction options and limits.
Fields§
§format: OutputFormat§max_output_chars: usizeOutput longer than this many characters is truncated.
max_pages: usizeMaximum PDF pages, presentation slides or EPUB chapters.
max_sheets: usizeMaximum spreadsheet sheets.
max_rows: usizeMaximum rows per spreadsheet sheet (and per CSV/TSV file).
max_cols: usizeMaximum columns of any table (spreadsheet sheet, CSV/TSV, DOCX table).
max_cells: usizeMaximum non-empty cells across a spreadsheet sheet. Spreadsheets whose used range would exceed this are rejected before they are loaded.
max_zip_entries: usizeMaximum entries in a zip container.
max_decompressed_bytes: u64Maximum total decompressed bytes read from a zip container.
Implementations§
Source§impl Options
impl Options
pub fn with_format(self, format: OutputFormat) -> Self
pub fn with_max_output_chars(self, max: usize) -> Self
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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.