pub struct TrackIdentity {
pub path: String,
pub size: u64,
pub codec: String,
pub duration_ms: Option<u64>,
pub sample_rate: Option<u32>,
pub bit_depth: Option<u16>,
pub channels: Option<u16>,
pub metadata: BTreeMap<String, Vec<String>>,
pub fingerprint: Option<String>,
}Expand description
Last observed identity evidence for a file named by personal data.
A basename alone never proves a move. Size, stream characteristics and identifying tags must agree, as must an acoustic fingerprint when one was available. This is a conservative relocation heuristic, not a byte checksum.
Fields§
§path: StringPath at which the evidence was observed.
size: u64File size in bytes.
codec: StringCodec declared by the stream.
duration_ms: Option<u64>Duration measured from the stream.
sample_rate: Option<u32>Sampling frequency in hertz.
bit_depth: Option<u16>Stream precision when meaningful.
channels: Option<u16>Number of channels.
metadata: BTreeMap<String, Vec<String>>Identifying tags, without notes, lyrics or other large text fields.
fingerprint: Option<String>Acoustic fingerprint, when already known without reading the file.
Trait Implementations§
Source§impl Clone for TrackIdentity
impl Clone for TrackIdentity
Source§fn clone(&self) -> TrackIdentity
fn clone(&self) -> TrackIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackIdentity
impl Debug for TrackIdentity
Source§impl PartialEq for TrackIdentity
impl PartialEq for TrackIdentity
impl Eq for TrackIdentity
impl StructuralPartialEq for TrackIdentity
Auto Trait Implementations§
impl Freeze for TrackIdentity
impl RefUnwindSafe for TrackIdentity
impl Send for TrackIdentity
impl Sync for TrackIdentity
impl Unpin for TrackIdentity
impl UnwindSafe for TrackIdentity
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