pub struct MatchDisplayRow {
pub file_type: String,
pub file_path: String,
}Expand description
Display row structure for file matching operation results.
This structure represents a single row in the match results table, containing file type identifier and complete file path. Each row shows one piece of information from an AI-powered file matching operation, with multiple rows grouped together to represent one complete match result.
§Field Descriptions
file_type: File type identifier (Video 1, Subtitle 1, New name 1)file_path: Complete file path displayed without truncation
§File Type Identifiers
Standard file type values:
Video 1,Video 2, etc.: Original video files used as referenceSubtitle 1,Subtitle 2, etc.: Original subtitle files to be renamedNew name 1,New name 2, etc.: Generated new names for subtitle files
§Examples
use subx_cli::cli::table::MatchDisplayRow;
// Video file entry
let video_row = MatchDisplayRow {
file_type: "Video 1".to_string(),
file_path: "/path/to/Movie.2023.1080p.BluRay.mp4".to_string(),
};
// Subtitle file entry
let subtitle_row = MatchDisplayRow {
file_type: "Subtitle 1".to_string(),
file_path: "/path/to/random_subtitle.srt".to_string(),
};
// New name entry
let newname_row = MatchDisplayRow {
file_type: "New name 1".to_string(),
file_path: "/path/to/Movie.2023.1080p.BluRay.srt".to_string(),
};Match result table row for displaying file type and path in clean two-column layout
Fields§
§file_type: StringFile type identifier (Video 1, Subtitle 1, New name 1)
file_path: StringComplete file path without truncation
Trait Implementations§
Source§impl Tabled for MatchDisplayRow
impl Tabled for MatchDisplayRow
Auto Trait Implementations§
impl Freeze for MatchDisplayRow
impl RefUnwindSafe for MatchDisplayRow
impl Send for MatchDisplayRow
impl Sync for MatchDisplayRow
impl Unpin for MatchDisplayRow
impl UnwindSafe for MatchDisplayRow
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