pub struct Track {Show 24 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<i32>,
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 streamable: Option<bool>,
pub downloadable: Option<bool>,
pub hires: Option<bool>,
pub maximum_bit_depth: Option<i32>,
pub maximum_sampling_rate: Option<f64>,
pub maximum_channel_count: Option<i32>,
pub release_date_original: Option<String>,
pub release_date_stream: Option<String>,
pub parental_warning: Option<bool>,
pub product_sales_factors: Option<Value>,
}Expand description
An individual music track.
Fields§
§id: Option<i32>Unique track identifier.
title: Option<String>Track title.
version: Option<String>Version subtitle.
isrc: Option<String>ISRC code.
track_number: Option<i32>Track position in album.
duration: Option<i32>Duration in seconds.
media_number: Option<i32>Disc number.
work: Option<String>Classical work title.
album: Option<Box<Album>>Parent album.
performer: Option<Box<Artist>>Primary performer.
performers: Option<String>All performers (formatted string).
composer: Option<Box<Artist>>Primary composer.
audio_info: Option<AudioInfo>Audio technical details.
copyright: Option<String>Copyright notice.
streamable: Option<bool>Streaming available.
downloadable: Option<bool>Download available.
hires: Option<bool>Hi-Res available.
maximum_bit_depth: Option<i32>Max bit depth.
maximum_sampling_rate: Option<f64>Max sample rate.
maximum_channel_count: Option<i32>Max channel count.
release_date_original: Option<String>Original release date.
release_date_stream: Option<String>Streaming date.
parental_warning: Option<bool>Explicit content flag.
product_sales_factors: Option<Value>Sales metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Track
impl<'de> Deserialize<'de> for Track
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more