Skip to main content

MarkerRequest

Struct MarkerRequest 

Source
pub struct MarkerRequest {
Show 21 fields pub file: Option<Vec<u8>>, pub filename: Option<String>, pub file_url: Option<String>, pub output_format: Vec<OutputFormat>, pub mode: ProcessingMode, pub max_pages: Option<u32>, pub page_range: Option<String>, pub paginate: bool, pub skip_cache: bool, pub disable_image_extraction: bool, pub disable_image_captions: bool, pub save_checkpoint: bool, pub add_block_ids: bool, pub include_markdown_in_chunks: bool, pub keep_spreadsheet_formatting: bool, pub page_schema: Option<Value>, pub segmentation_schema: Option<String>, pub additional_config: Option<Value>, pub extras: Option<String>, pub fence_synthetic_captions: bool, pub webhook_url: Option<String>,
}
Expand description

Request parameters for the DataLab Marker conversion API.

Exactly one of file or file_url must be set.

Fields§

§file: Option<Vec<u8>>

Raw file bytes to upload. Required when file_url is not set.

§filename: Option<String>

Filename for the uploaded file (e.g. "paper.pdf"). Used when file is set.

§file_url: Option<String>

Public URL to the file. Alternative to file.

§output_format: Vec<OutputFormat>

Output format(s). Defaults to [Markdown].

§mode: ProcessingMode

Processing mode. Defaults to Balanced.

§max_pages: Option<u32>

Maximum number of pages to process.

§page_range: Option<String>

Page range (0-indexed). E.g. "0-5" or "1,3,5".

§paginate: bool

Insert page delimiters in output.

§skip_cache: bool

Force reprocessing even if cached.

§disable_image_extraction: bool

Skip extracting images.

§disable_image_captions: bool

Skip generating image captions.

§save_checkpoint: bool

Save intermediate checkpoint for downstream extraction steps.

§add_block_ids: bool

HTML mode only: adds data-block-id attributes.

§include_markdown_in_chunks: bool

Include markdown alongside chunks output.

§keep_spreadsheet_formatting: bool

Preserve spreadsheet table structure.

§page_schema: Option<Value>

JSON schema for structured data extraction.

§segmentation_schema: Option<String>

Schema for document segmentation.

§additional_config: Option<Value>

Extra Marker config (e.g. force_ocr, languages).

§extras: Option<String>

Comma-separated extras: track_changes, chart_understanding, etc.

§fence_synthetic_captions: bool

Fence auto-generated captions.

§webhook_url: Option<String>

URL to POST results to when processing completes.

Trait Implementations§

Source§

impl Default for MarkerRequest

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more