pub struct Track {Show 31 fields
pub id: Option<i32>,
pub title: Option<String>,
pub version: Option<String>,
pub isrc: Option<String>,
pub track_number: Option<i32>,
pub duration: Option<i64>,
pub media_number: Option<i32>,
pub work: Option<String>,
pub album: Option<Box<Album>>,
pub performer: Option<Box<Artist>>,
pub performers: Option<String>,
pub composer: Option<Box<Artist>>,
pub audio_info: Option<AudioInfo>,
pub copyright: Option<String>,
pub displayable: Option<bool>,
pub downloadable: Option<bool>,
pub purchasable: Option<bool>,
pub streamable: Option<bool>,
pub previewable: Option<bool>,
pub sampleable: Option<bool>,
pub hires: Option<bool>,
pub hires_streamable: Option<bool>,
pub maximum_bit_depth: Option<f64>,
pub maximum_channel_count: Option<f64>,
pub maximum_sampling_rate: Option<f64>,
pub purchasable_at: Option<i64>,
pub streamable_at: Option<i64>,
pub release_date_download: Option<String>,
pub release_date_original: Option<String>,
pub release_date_stream: Option<String>,
pub parental_warning: Option<bool>,
}Expand description
Track model representing a track on the Qobuz platform
This struct contains comprehensive information about a track including its identification, title, version, duration, album, artists, and various metadata.
§Examples
use qobuz_api_rust::models::Track;
let track = Track {
id: Some(12345),
title: Some("Example Track".to_string()),
..Default::default()
};Fields§
§id: Option<i32>Unique identifier for the track
title: Option<String>Title of the track
version: Option<String>Version information for the track (e.g., “Remastered”, “Acoustic”)
isrc: Option<String>International Standard Recording Code for the track
track_number: Option<i32>Track number within its album
duration: Option<i64>Duration of the track in seconds
media_number: Option<i32>Media number (disk number) for the track
work: Option<String>Work information for the track (for classical music)
album: Option<Box<Album>>Album that contains this track (boxed to handle recursive structures)
performer: Option<Box<Artist>>Main performer of the track (boxed to handle recursive structures)
performers: Option<String>List of performers for the track as a string
composer: Option<Box<Artist>>Composer of the track (boxed to handle recursive structures)
audio_info: Option<AudioInfo>Audio information for the track
copyright: Option<String>Copyright information for the track
displayable: Option<bool>Whether the track is displayable to users
downloadable: Option<bool>Whether the track is available for download
purchasable: Option<bool>Whether the track is available for purchase
streamable: Option<bool>Whether the track is available for streaming
previewable: Option<bool>Whether the track has a preview available
sampleable: Option<bool>Whether the track has a sample available
hires: Option<bool>Whether the track is available in high-resolution format
hires_streamable: Option<bool>Whether the track is streamable in high-resolution format
maximum_bit_depth: Option<f64>Maximum bit depth of the track’s audio file
maximum_channel_count: Option<f64>Maximum number of audio channels in the track’s file
maximum_sampling_rate: Option<f64>Maximum sampling rate of the track’s audio file
purchasable_at: Option<i64>Unix timestamp of when the track became purchasable
streamable_at: Option<i64>Unix timestamp of when the track became streamable
release_date_download: Option<String>Date when the track became available for download
release_date_original: Option<String>Original release date of the track
release_date_stream: Option<String>Date when the track became available for streaming
parental_warning: Option<bool>Whether the track has parental content warnings