pub struct Track {Show 15 fields
pub id: MediaId,
pub album_id: MediaId,
pub artist_id: MediaId,
pub artist_name: Option<String>,
pub album_title: Option<String>,
pub title: String,
pub track: Option<u32>,
pub disc: Option<u32>,
pub album_track_count: Option<u32>,
pub codec: Option<AudioCodec>,
pub bit_depth: Option<u32>,
pub sample_rate: Option<u32>,
pub duration: Option<Duration>,
pub artwork: Vec<Artwork>,
pub playback: PlaybackState,
}Fields§
§id: MediaId§album_id: MediaId§artist_id: MediaId§artist_name: Option<String>Who it is by, so a track shown alone (a search result, a queue) says whose it is: the track’s own artist where its tags name one (“Adele with Chris Stapleton”), else its album’s.
album_title: Option<String>Its album’s title, for the same reason.
title: String§track: Option<u32>Position on its disc, when the tags say.
disc: Option<u32>§album_track_count: Option<u32>How many tracks its album has (as Album::track_count), for
“track 3 of 9”. Set on an album’s own tracks, the children of
its item; None elsewhere.
codec: Option<AudioCodec>The audio codec, None when the catalog does not say.
bit_depth: Option<u32>Bits per sample (16, 24); None when not known, and for lossy
codecs, which have none. Known for an album’s own tracks and a
track’s own item, not in other listings or search.
sample_rate: Option<u32>Samples per second, in Hz (44_100, 96_000); known where
bit_depth is.
duration: Option<Duration>§artwork: Vec<Artwork>Its album’s cover as the poster, and its artist’s background.
playback: PlaybackState