pub struct MatchOperation {
pub video_file: MediaFile,
pub subtitle_file: MediaFile,
pub new_subtitle_name: String,
pub confidence: f32,
pub reasoning: Vec<String>,
pub relocation_mode: FileRelocationMode,
pub relocation_target_path: Option<PathBuf>,
pub requires_relocation: bool,
}
Expand description
Match operation result representing a single video-subtitle match.
Contains all information about a successful match between a video file and a subtitle file, including confidence metrics and reasoning.
Fields§
§video_file: MediaFile
The matched video file
subtitle_file: MediaFile
The matched subtitle file
new_subtitle_name: String
The new filename for the subtitle file
confidence: f32
Confidence score of the match (0.0 to 1.0)
reasoning: Vec<String>
List of reasons supporting this match
relocation_mode: FileRelocationMode
File relocation mode for this operation
relocation_target_path: Option<PathBuf>
Target relocation path if operation is needed
requires_relocation: bool
Whether relocation operation is needed (different folders)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchOperation
impl RefUnwindSafe for MatchOperation
impl Send for MatchOperation
impl Sync for MatchOperation
impl Unpin for MatchOperation
impl UnwindSafe for MatchOperation
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