pub enum ProcessingOperation {
ConvertFormat {
from: String,
to: String,
},
SyncSubtitle {
audio_path: PathBuf,
},
MatchFiles {
recursive: bool,
},
ValidateFormat,
CopyToVideoFolder {
source: PathBuf,
target: PathBuf,
},
MoveToVideoFolder {
source: PathBuf,
target: PathBuf,
},
CopyWithRename {
source: PathBuf,
target: PathBuf,
},
CreateBackup {
source: PathBuf,
backup: PathBuf,
},
RenameFile {
source: PathBuf,
target: PathBuf,
},
}
Expand description
Supported operations for file processing tasks.
Defines the different types of operations that can be performed on subtitle and video files in the processing system.
Variants§
ConvertFormat
Convert subtitle format from one type to another
SyncSubtitle
Synchronize subtitle timing with audio
MatchFiles
Match subtitle files with video files
ValidateFormat
Validate subtitle file format and structure
CopyToVideoFolder
Copy subtitle file to video folder
Fields
MoveToVideoFolder
Move subtitle file to video folder
Fields
CopyWithRename
Copy a file with a new name (local copy)
CreateBackup
Create a backup of a file
RenameFile
Rename (move) a file
Trait Implementations§
Source§impl Clone for ProcessingOperation
impl Clone for ProcessingOperation
Source§fn clone(&self) -> ProcessingOperation
fn clone(&self) -> ProcessingOperation
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 ProcessingOperation
impl Debug for ProcessingOperation
Auto Trait Implementations§
impl Freeze for ProcessingOperation
impl RefUnwindSafe for ProcessingOperation
impl Send for ProcessingOperation
impl Sync for ProcessingOperation
impl Unpin for ProcessingOperation
impl UnwindSafe for ProcessingOperation
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