pub struct MediaFile {
pub id: String,
pub path: PathBuf,
pub file_type: MediaFileType,
pub size: u64,
pub name: String,
pub extension: String,
pub relative_path: String,
}
Expand description
Media file record representing a discovered file.
Contains metadata about a media file discovered during the scanning process, including its path, type classification, and basic file properties.
Fields§
§id: String
Unique identifier for this media file (deterministic hash)
path: PathBuf
Full path to the media file
file_type: MediaFileType
Classification of the file (Video or Subtitle)
size: u64
File size in bytes
name: String
Complete filename with extension (e.g., “movie.mkv”)
extension: String
File extension (without the dot)
relative_path: String
Relative path from scan root for recursive matching
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaFile
impl RefUnwindSafe for MediaFile
impl Send for MediaFile
impl Sync for MediaFile
impl Unpin for MediaFile
impl UnwindSafe for MediaFile
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