#[non_exhaustive]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 (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.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 UnsafeUnpin 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