pub struct SegmentArgs {
pub input: String,
pub schema: String,
pub checkpoint_id: Option<String>,
pub mode: String,
pub max_pages: Option<u32>,
pub save_checkpoint: bool,
pub skip_cache: bool,
pub output: Option<PathBuf>,
pub timeout: u64,
}Fields§
§input: StringFile path or URL to segment
schema: StringJSON schema file or string defining segmentation structure
checkpoint_id: Option<String>Checkpoint ID to reuse parsed document
mode: StringProcessing mode: fast, balanced, accurate
max_pages: Option<u32>Maximum pages to process
save_checkpoint: boolSave checkpoint for reuse
skip_cache: boolSkip local cache lookup
output: Option<PathBuf>Write result to file
timeout: u64Request timeout in seconds
Trait Implementations§
Source§impl Args for SegmentArgs
impl Args for SegmentArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for SegmentArgs
impl Debug for SegmentArgs
Source§impl FromArgMatches for SegmentArgs
impl FromArgMatches for SegmentArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SegmentArgs
impl RefUnwindSafe for SegmentArgs
impl Send for SegmentArgs
impl Sync for SegmentArgs
impl Unpin for SegmentArgs
impl UnsafeUnpin for SegmentArgs
impl UnwindSafe for SegmentArgs
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