pub trait ResourceContainer {
type ItemType;
// Required methods
fn total(&self) -> u32;
fn items(self) -> Vec<Self::ItemType>;
}Expand description
Trait for containers that hold Last.fm resources (tracks, artists, etc.)
pub trait ResourceContainer {
type ItemType;
// Required methods
fn total(&self) -> u32;
fn items(self) -> Vec<Self::ItemType>;
}Trait for containers that hold Last.fm resources (tracks, artists, etc.)