pub struct TrackStats {
pub total_tracks: usize,
pub artist_play_counts: HashMap<String, usize>,
pub track_play_counts: HashMap<String, usize>,
pub tracks_below_threshold: HashMap<String, usize>,
pub tracks_above_threshold: HashMap<String, usize>,
pub most_played_artist: Option<(String, usize)>,
pub most_played_track: Option<(String, usize)>,
}Expand description
Represents statistics about tracks
Fields§
§total_tracks: usizeTotal number of tracks
artist_play_counts: HashMap<String, usize>Map of artist names to play counts
track_play_counts: HashMap<String, usize>Map of track names to play counts
tracks_below_threshold: HashMap<String, usize>Map of tracks played less than threshold
tracks_above_threshold: HashMap<String, usize>Map of tracks played more than threshold
most_played_artist: Option<(String, usize)>Most played artist
most_played_track: Option<(String, usize)>Most played track
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackStats
impl RefUnwindSafe for TrackStats
impl Send for TrackStats
impl Sync for TrackStats
impl Unpin for TrackStats
impl UnwindSafe for TrackStats
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