pub struct LibraryHealthResponse {
pub artists: u64,
pub albums: u64,
pub songs: u64,
pub unanalyzed_songs: Option<u64>,
pub playlists: u64,
pub collections: u64,
pub dynamic_playlists: u64,
pub orphaned_artists: u64,
pub orphaned_albums: u64,
pub orphaned_playlists: u64,
pub orphaned_collections: u64,
}Expand description
Health information about the library
Fields§
§artists: u64The number of artists in the library
albums: u64The number of albums in the library
songs: u64The number of songs in the library
unanalyzed_songs: Option<u64>The number of unanalyzed songs in the library Optional because the analysis feature may not be enabled for the daemon
playlists: u64The number of playlists in the library
collections: u64The number of collections in the library
dynamic_playlists: u64The number of dynamic playlists in the library
orphaned_artists: u64The number of orphaned songs in the library This is the number of artists that have no songs, and no albums
orphaned_albums: u64The number of orphaned albums in the library This is the number of albums that have no songs
orphaned_playlists: u64The number of orphaned playlists in the library This is the number of playlists that have no songs
orphaned_collections: u64The number of orphaned collections in the library This is the number of collections that have no songs
TODO: implement counting of missing items // The number of missing artists in the library // This is the number of artists of songs/albums that are not in the library required uint64 missing_artists = 12; // The number of missing albums in the library // This is the number of albums of songs that are not in the library required uint64 missing_albums = 13; // The number of missing songs in the library // This is the number of songs that are not in the library required uint64 missing_songs = 14; // The number of missing playlists in the library // This is the number of playlists that are not in the library required uint64 missing_playlists = 15; // The number of missing collections in the library // This is the number of collections that are not in the library required uint64 missing_collections = 16; // The number of missing files required uint64 missing_files = 17;
Implementations§
Source§impl LibraryHealthResponse
impl LibraryHealthResponse
Sourcepub fn unanalyzed_songs(&self) -> u64
pub fn unanalyzed_songs(&self) -> u64
Returns the value of unanalyzed_songs, or the default value if unanalyzed_songs is unset.
Trait Implementations§
Source§impl Clone for LibraryHealthResponse
impl Clone for LibraryHealthResponse
Source§fn clone(&self) -> LibraryHealthResponse
fn clone(&self) -> LibraryHealthResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LibraryHealthResponse
impl Debug for LibraryHealthResponse
Source§impl Default for LibraryHealthResponse
impl Default for LibraryHealthResponse
Source§impl Hash for LibraryHealthResponse
impl Hash for LibraryHealthResponse
Source§impl Message for LibraryHealthResponse
impl Message for LibraryHealthResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for LibraryHealthResponse
impl PartialEq for LibraryHealthResponse
impl Copy for LibraryHealthResponse
impl Eq for LibraryHealthResponse
impl StructuralPartialEq for LibraryHealthResponse
Auto Trait Implementations§
impl Freeze for LibraryHealthResponse
impl RefUnwindSafe for LibraryHealthResponse
impl Send for LibraryHealthResponse
impl Sync for LibraryHealthResponse
impl Unpin for LibraryHealthResponse
impl UnwindSafe for LibraryHealthResponse
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request