pub struct LibraryHealth {
pub artists: usize,
pub albums: usize,
pub songs: usize,
pub unanalyzed_songs: Option<usize>,
pub playlists: usize,
pub collections: usize,
pub dynamic_playlists: usize,
pub orphaned_artists: usize,
pub orphaned_albums: usize,
pub orphaned_playlists: usize,
pub orphaned_collections: usize,
}Expand description
Health information about the library
Fields§
§artists: usizeThe number of artists in the library
albums: usizeThe number of albums in the library
songs: usizeThe number of songs in the library
unanalyzed_songs: Option<usize>The number of unanalyzed songs in the library Optional because the analysis feature may not be enabled for the daemon
playlists: usizeThe number of playlists in the library
collections: usizeThe number of collections in the library
dynamic_playlists: usizeThe number of dynamic playlists in the library
orphaned_artists: usizeThe number of orphaned songs in the library This is the number of artists that have no songs, and no albums
orphaned_albums: usizeThe number of orphaned albums in the library This is the number of albums that have no songs
orphaned_playlists: usizeThe number of orphaned playlists in the library This is the number of playlists that have no songs
orphaned_collections: usizeThe number of orphaned collections in the library This is the number of collections that have no songs
Trait Implementations§
Source§impl Clone for LibraryHealth
impl Clone for LibraryHealth
Source§fn clone(&self) -> LibraryHealth
fn clone(&self) -> LibraryHealth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LibraryHealth
impl Debug for LibraryHealth
Source§impl<'de> Deserialize<'de> for LibraryHealth
impl<'de> Deserialize<'de> for LibraryHealth
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>,
Auto Trait Implementations§
impl Freeze for LibraryHealth
impl RefUnwindSafe for LibraryHealth
impl Send for LibraryHealth
impl Sync for LibraryHealth
impl Unpin for LibraryHealth
impl UnwindSafe for LibraryHealth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.