pub struct ReprocessArgs {
pub input: PathBuf,
pub pages: Option<Vec<usize>>,
pub max_retries: u32,
pub force: bool,
pub status: bool,
pub output: Option<PathBuf>,
pub keep_intermediates: bool,
pub verbose: u8,
pub quiet: bool,
}Expand description
Arguments for the reprocess command
Fields§
§input: PathBufPDF file or state file path (.superbook-state.json)
pages: Option<Vec<usize>>Specific pages to retry (comma-separated, 0-indexed)
max_retries: u32Maximum retry attempts per page
force: boolForce reprocess all failed pages
status: boolShow status only, don’t process
output: Option<PathBuf>Output directory (only if input is PDF, not state file)
keep_intermediates: boolKeep intermediate files
verbose: u8Verbosity level (-v, -vv, -vvv)
quiet: boolSuppress progress output
Implementations§
Source§impl ReprocessArgs
impl ReprocessArgs
Sourcepub fn is_state_file(&self) -> bool
pub fn is_state_file(&self) -> bool
Check if the input is a state file
Sourcepub fn page_indices(&self) -> Vec<usize>
pub fn page_indices(&self) -> Vec<usize>
Get page indices to reprocess (empty means all failed)
Trait Implementations§
Source§impl Args for ReprocessArgs
impl Args for ReprocessArgs
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 Clone for ReprocessArgs
impl Clone for ReprocessArgs
Source§fn clone(&self) -> ReprocessArgs
fn clone(&self) -> ReprocessArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 ReprocessArgs
impl Debug for ReprocessArgs
Source§impl FromArgMatches for ReprocessArgs
impl FromArgMatches for ReprocessArgs
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 ReprocessArgs
impl RefUnwindSafe for ReprocessArgs
impl Send for ReprocessArgs
impl Sync for ReprocessArgs
impl Unpin for ReprocessArgs
impl UnwindSafe for ReprocessArgs
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<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