pub struct MatchConfig {
pub confidence_threshold: f32,
pub max_sample_length: usize,
pub enable_content_analysis: bool,
pub backup_enabled: bool,
pub relocation_mode: FileRelocationMode,
pub conflict_resolution: ConflictResolution,
pub ai_model: String,
pub max_subtitle_bytes: u64,
}Expand description
Configuration settings for the file matching engine.
Controls various aspects of the subtitle-to-video matching process, including confidence thresholds and analysis options.
§Construction stability
Every field is public and the struct is exhaustively constructible, so
adding a ninth field is a major-version change for every struct
literal a caller writes. crate::core::factory::ComponentFactory::match_config
is the route that removes that exposure for config-driven callers —
mutate its return value instead of writing a literal — and once no
caller writes literals, adding #[non_exhaustive] here becomes a
cost-free tightening a future change may take.
Fields§
§confidence_threshold: f32Minimum confidence score required for a successful match (0.0 to 1.0)
max_sample_length: usizeMaximum number of characters to sample from subtitle content
enable_content_analysis: boolWhether to enable advanced content analysis for matching
backup_enabled: boolWhether to create backup files before operations
relocation_mode: FileRelocationModeFile relocation mode
conflict_resolution: ConflictResolutionStrategy for handling filename conflicts during relocation
ai_model: StringAI model name used for analysis
max_subtitle_bytes: u64Maximum subtitle file size in bytes accepted for content sampling.
Populated from GeneralConfig.max_subtitle_bytes.
Trait Implementations§
Source§impl Clone for MatchConfig
impl Clone for MatchConfig
Source§fn clone(&self) -> MatchConfig
fn clone(&self) -> MatchConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more