pub struct ScannedFile {
pub path: String,
pub size: u64,
pub mtime: u64,
pub tags: RawTags,
pub folder_cover: Option<String>,
pub sidecar: Option<String>,
pub integrity: Option<IntegrityRecord>,
pub fingerprint: Option<Fingerprint>,
}Expand description
A file read by the scanner, before entity matching.
Fields§
§path: StringAbsolute path of the file that was read.
size: u64Size in bytes at the moment of the scan.
mtime: u64Modification date in seconds since the Unix epoch. The scanner stores
its nanosecond fraction separately on Catalog::file_mtime_subseconds
after building the graph; both parts and size decide cache reuse.
Tags and stream properties, exactly as the decoder handed them over.
folder_cover: Option<String>Cover art found in the folder (cover.jpg, folder.png…).
sidecar: Option<String>A .lrc file sitting beside this one, when the walk saw one.
integrity: Option<IntegrityRecord>Integrity verdict carried over from the previous catalog, when the file was reused unchanged. A freshly read file has none: it has to be checked again.
fingerprint: Option<Fingerprint>Fingerprint carried over the same way, and dropped for the same reason: a file that changed is different audio, and its old fingerprint describes something that is no longer there.
Trait Implementations§
Source§impl Clone for ScannedFile
impl Clone for ScannedFile
Source§fn clone(&self) -> ScannedFile
fn clone(&self) -> ScannedFile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more