pub struct Stats {Show 19 fields
pub files: usize,
pub tracks: usize,
pub releases: usize,
pub compilations: usize,
pub artists: usize,
pub album_artists: usize,
pub labels: usize,
pub genres: usize,
pub total_duration_ms: u64,
pub total_bytes: u64,
pub orphan_tracks: usize,
pub by_codec: Vec<Bucket>,
pub by_quality: Vec<Bucket>,
pub by_sample_rate: Vec<Bucket>,
pub by_decade: Vec<Bucket>,
pub cover_ratio: f64,
pub year_ratio: f64,
pub genre_ratio: f64,
pub mbid_ratio: f64,
}Expand description
Snapshot of what the catalog contains, recomputed on each call.
Fields§
§files: usizeAudio files seen on disk, whether or not they could be attached to anything.
tracks: usizeLocal track placements held by the catalog, one per file.
releases: usizeAlbums, EPs and singles reconstructed from the tags.
compilations: usizeReleases gathering several artists rather than one, and so excluded from a discography.
artists: usizeDistinct artists, all roles taken together.
album_artists: usizeArtists carrying at least one album.
labels: usizeDistinct record labels credited across the releases.
genres: usizeDistinct genres in use, after the tags have been normalized.
total_duration_ms: u64Cumulative playing time of the library, in milliseconds, saturating at u64::MAX.
total_bytes: u64Space the audio files take up on disk, in bytes, saturating at u64::MAX.
Cover art is not counted.
orphan_tracks: usizeTracks with no identified album.
by_codec: Vec<Bucket>Files grouped by container format, the untagged ones landing under unknown.
by_quality: Vec<Bucket>Files grouped by perceived quality, following QualityTier.
by_sample_rate: Vec<Bucket>Files grouped by sampling frequency; files that declare none are left out.
by_decade: Vec<Bucket>Releases grouped by decade of publication, undated ones gathered under a separate label.
cover_ratio: f64Share of releases having cover art (embedded or in the folder).
This field and the three that follow are proportions between 0 and 1, not percentages; the display layer decides how to present them.
year_ratio: f64Share of tracks carrying a year.
genre_ratio: f64Share of tracks carrying at least one genre.
mbid_ratio: f64Share of tracks already identified by a MusicBrainz MBID.