#[non_exhaustive]pub struct WeeklyAlbum {
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
An album entry in a weekly album chart.
Returned by user.getWeeklyAlbumChart.
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: StringAlbum title
mbid: StringMusicBrainz album identifier (may be empty)
url: StringLast.fm URL for this album
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 WeeklyAlbum
impl Clone for WeeklyAlbum
Source§fn clone(&self) -> WeeklyAlbum
fn clone(&self) -> WeeklyAlbum
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 WeeklyAlbum
impl RefUnwindSafe for WeeklyAlbum
impl Send for WeeklyAlbum
impl Sync for WeeklyAlbum
impl Unpin for WeeklyAlbum
impl UnsafeUnpin for WeeklyAlbum
impl UnwindSafe for WeeklyAlbum
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