pub struct Track {Show 14 fields
pub path: PathBuf,
pub cover_path: Option<PathBuf>,
pub duration: Duration,
pub artist: Option<String>,
pub title: Option<String>,
pub album: Option<String>,
pub genre: Option<String>,
pub lyrics: Option<String>,
pub comment: Option<String>,
pub track: Option<u32>,
pub track_total: Option<u32>,
pub disc: Option<u32>,
pub disc_total: Option<u32>,
pub year: Option<u32>,
}Expand description
Struct representing a track from the music library.
Fields§
§path: PathBufThe path to the audio file.
cover_path: Option<PathBuf>The path to the extracted cover file.
duration: DurationThe duration of the track.
artist: Option<String>The track artist.
title: Option<String>The track title.
album: Option<String>The track album.
genre: Option<String>The track genre.
lyrics: Option<String>Possibly synchronized lyrics text.
comment: Option<String>Contents of the comment tag.
track: Option<u32>§track_total: Option<u32>§disc: Option<u32>§disc_total: Option<u32>§year: Option<u32>Release year.
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 Eq for Track
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