#[non_exhaustive]pub struct WeeklyTrack {
pub name: String,
pub mbid: String,
pub url: String,
pub playcount: u32,
pub artist_name: String,
pub artist_mbid: String,
pub rank: u32,
}Expand description
A track entry in a weekly track chart.
Returned by user.getWeeklyTrackChart.
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 title
mbid: StringMusicBrainz track identifier (may be empty)
url: StringLast.fm URL for this track
playcount: u32Number of plays in this week
artist_name: StringArtist name
artist_mbid: StringMusicBrainz artist identifier (may be empty)
rank: u32Position in the chart (1-indexed)
Trait Implementations§
Source§impl Clone for WeeklyTrack
impl Clone for WeeklyTrack
Source§fn clone(&self) -> WeeklyTrack
fn clone(&self) -> WeeklyTrack
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 moreAuto Trait Implementations§
impl Freeze for WeeklyTrack
impl RefUnwindSafe for WeeklyTrack
impl Send for WeeklyTrack
impl Sync for WeeklyTrack
impl Unpin for WeeklyTrack
impl UnsafeUnpin for WeeklyTrack
impl UnwindSafe for WeeklyTrack
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