pub struct SyncPairingRequest {
pub positional_paths: Vec<PathBuf>,
pub input_paths: Vec<PathBuf>,
pub video: Option<PathBuf>,
pub subtitle: Option<PathBuf>,
pub batch: BatchRequest,
pub recursive: bool,
pub no_extract: bool,
pub manual: bool,
}Expand description
Parser-agnostic description of one sync invocation’s inputs.
resolve_sync_pairing consumes this instead of a clap argument struct,
so mode resolution and auto-pairing are callable without any
argument-parsing type. Derives Default so callers fill only the fields
their case needs.
Fields§
§positional_paths: Vec<PathBuf>Positional file or directory paths in invocation order.
input_paths: Vec<PathBuf>Paths supplied via repeated -i arguments.
video: Option<PathBuf>Explicit --video path.
subtitle: Option<PathBuf>Explicit --subtitle path.
batch: BatchRequestHow batch processing was requested.
recursive: boolWhether directory scanning is recursive.
no_extract: boolWhether archive extraction is disabled.
manual: boolManual-offset mode: a video is not required.
Trait Implementations§
Source§impl Clone for SyncPairingRequest
impl Clone for SyncPairingRequest
Source§fn clone(&self) -> SyncPairingRequest
fn clone(&self) -> SyncPairingRequest
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 moreSource§impl Debug for SyncPairingRequest
impl Debug for SyncPairingRequest
Source§impl Default for SyncPairingRequest
impl Default for SyncPairingRequest
Source§fn default() -> SyncPairingRequest
fn default() -> SyncPairingRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyncPairingRequest
impl RefUnwindSafe for SyncPairingRequest
impl Send for SyncPairingRequest
impl Sync for SyncPairingRequest
impl Unpin for SyncPairingRequest
impl UnsafeUnpin for SyncPairingRequest
impl UnwindSafe for SyncPairingRequest
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