pub struct MatchArgs {
pub path: Option<PathBuf>,
pub input_paths: Vec<PathBuf>,
pub dry_run: bool,
pub confidence: u8,
pub recursive: bool,
pub backup: bool,
pub copy: bool,
pub move_files: bool,
}
Expand description
Arguments for AI-powered subtitle file matching and renaming.
Fields§
§path: Option<PathBuf>
Target directory path containing video and subtitle files
input_paths: Vec<PathBuf>
Specify file or directory paths to process (new parameter), can be used multiple times
dry_run: bool
Enable dry-run mode to preview operations without making changes
confidence: u8
Minimum confidence threshold for file matching (0-100)
recursive: bool
Recursively process subdirectories
backup: bool
Create backup copies of original files before renaming
copy: bool
Copy matched subtitle files to the same folder as their corresponding video files
move_files: bool
Move matched subtitle files to the same folder as their corresponding video files
Implementations§
Trait Implementations§
Source§impl Args for MatchArgs
impl Args for MatchArgs
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 FromArgMatches for MatchArgs
impl FromArgMatches for MatchArgs
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 MatchArgs
impl RefUnwindSafe for MatchArgs
impl Send for MatchArgs
impl Sync for MatchArgs
impl Unpin for MatchArgs
impl UnwindSafe for MatchArgs
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