#[non_exhaustive]pub struct TrackPlayInfo {
pub name: String,
pub play_count: u32,
pub artist: String,
pub album: Option<String>,
pub image_url: Option<String>,
pub currently_playing: bool,
pub date: Option<u32>,
pub url: String,
}Expand description
Represents a track’s play count information
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringTrack name
play_count: u32Number of times played
artist: StringArtist name
album: Option<String>Album name (if available)
image_url: Option<String>Image URL (if available)
currently_playing: boolWhether the track is currently playing
date: Option<u32>Unix timestamp of when played
url: StringLast.fm URL
Trait Implementations§
Source§impl Debug for TrackPlayInfo
impl Debug for TrackPlayInfo
Auto Trait Implementations§
impl Freeze for TrackPlayInfo
impl RefUnwindSafe for TrackPlayInfo
impl Send for TrackPlayInfo
impl Sync for TrackPlayInfo
impl Unpin for TrackPlayInfo
impl UnsafeUnpin for TrackPlayInfo
impl UnwindSafe for TrackPlayInfo
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