pub struct Track {
pub id: String,
pub number: u32,
pub title: String,
pub album: String,
pub album_cover: Option<String>,
pub artist: String,
pub artist_cover: Option<String>,
pub duration: f64,
}Expand description
Represents a music track with metadata.
Fields§
§id: StringUnique identifier for the track.
number: u32Track number in the album.
title: StringTitle of the track.
album: StringAlbum name.
album_cover: Option<String>Optional URL to the album cover image.
artist: StringArtist name.
artist_cover: Option<String>Optional URL to the artist cover image.
duration: f64Duration of the track in seconds.
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
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