pub struct ReleaseTrack {
pub id: Option<i32>,
pub title: Option<String>,
pub duration: Option<i64>,
pub track_number: Option<i32>,
pub media_number: Option<i32>,
}Expand description
Release track model containing information about a track in a release
This struct represents a track in a release with details about its identification, title, duration, and position in the release.
§Examples
use qobuz_api_rust::models::ReleaseTrack;
let release_track = ReleaseTrack {
id: Some(12345),
title: Some("Example Track".to_string()),
duration: Some(180),
track_number: Some(1),
media_number: Some(1),
};Fields§
§id: Option<i32>Unique identifier for the track
title: Option<String>Title of the track
duration: Option<i64>Duration of the track in seconds
track_number: Option<i32>Track number within the release
media_number: Option<i32>Media number (disk number) for the track
Trait Implementations§
Source§impl Clone for ReleaseTrack
impl Clone for ReleaseTrack
Source§fn clone(&self) -> ReleaseTrack
fn clone(&self) -> ReleaseTrack
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 ReleaseTrack
impl Debug for ReleaseTrack
Source§impl Default for ReleaseTrack
impl Default for ReleaseTrack
Source§fn default() -> ReleaseTrack
fn default() -> ReleaseTrack
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReleaseTrack
impl<'de> Deserialize<'de> for ReleaseTrack
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
Auto Trait Implementations§
impl Freeze for ReleaseTrack
impl RefUnwindSafe for ReleaseTrack
impl Send for ReleaseTrack
impl Sync for ReleaseTrack
impl Unpin for ReleaseTrack
impl UnwindSafe for ReleaseTrack
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