pub struct TranslateMkvOptions {
pub input: PathBuf,
pub target_language: String,
pub track_id: Option<u64>,
pub keep_temp: bool,
pub dry_run: bool,
pub resume: bool,
pub max_concurrent: usize,
}Expand description
Options for the translate_mkv pipeline.
Fields§
§input: PathBufPath to an MKV file or directory containing MKV files.
target_language: StringTarget language code (e.g. "pt-BR", "en", "ja").
track_id: Option<u64>Specific subtitle track ID to translate. If None, selects the first ASS track.
keep_temp: boolIf true, preserves extracted/translated ASS files alongside the MKV.
dry_run: boolIf true, shows what would be translated without modifying files.
resume: boolIf true, saves progress to a file and skips already-translated files on restart.
max_concurrent: usizeMaximum number of chunks to translate concurrently. Default: 1 (sequential).
Trait Implementations§
Source§impl Clone for TranslateMkvOptions
impl Clone for TranslateMkvOptions
Source§fn clone(&self) -> TranslateMkvOptions
fn clone(&self) -> TranslateMkvOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranslateMkvOptions
impl RefUnwindSafe for TranslateMkvOptions
impl Send for TranslateMkvOptions
impl Sync for TranslateMkvOptions
impl Unpin for TranslateMkvOptions
impl UnsafeUnpin for TranslateMkvOptions
impl UnwindSafe for TranslateMkvOptions
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