pub struct Artist {
pub name: String,
pub playcount: u32,
pub timestamp: Option<u64>,
}Expand description
Represents a music artist with associated metadata.
This structure contains artist information as parsed from Last.fm pages, including the total number of scrobbles for this artist.
Fields§
§name: StringThe artist name
playcount: u32Number of times this artist has been played/scrobbled
timestamp: Option<u64>Unix timestamp of when this artist was last scrobbled (if available)
This field is populated when artists are retrieved from recent scrobbles
or individual scrobble data, but may be None for aggregate artist listings.
Implementations§
Trait Implementations§
Source§impl<C: LastFmEditClient> AsyncPaginatedIterator<Artist> for ArtistsIterator<C>
impl<C: LastFmEditClient> AsyncPaginatedIterator<Artist> for ArtistsIterator<C>
Source§fn next<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Artist>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<Artist>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the next item from the iterator. Read more
Source§fn current_page(&self) -> u32
fn current_page(&self) -> u32
Get the current page number (0-indexed). Read more
Source§impl<'de> Deserialize<'de> for Artist
impl<'de> Deserialize<'de> for Artist
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 Artist
impl StructuralPartialEq for Artist
Auto Trait Implementations§
impl Freeze for Artist
impl RefUnwindSafe for Artist
impl Send for Artist
impl Sync for Artist
impl Unpin for Artist
impl UnwindSafe for Artist
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