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: StringUnique identifier for this media file (deterministic hash)
path: PathBufFull path to the media file
file_type: MediaFileTypeClassification of the file (Video or Subtitle)
size: u64File size in bytes
name: StringComplete filename with extension (e.g., “movie.mkv”)
extension: StringFile extension (without the dot)
relative_path: StringRelative 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