pub struct SearchCounts {
pub all: Option<u32>,
pub movies: Option<u32>,
pub shows: Option<u32>,
pub episodes: Option<u32>,
pub music: Option<u32>,
}Expand description
How many results each scope has, for the scope chips and the empty
state. A count is what the catalog says, not a promise: the scope’s
own search may find a few more or fewer. None where it is not known
without asking again; a search that finds nothing in its scope counts
the others.
Fields§
§all: Option<u32>Every group, people included.
movies: Option<u32>§shows: Option<u32>§episodes: Option<u32>Every matching episode, quiet ones included: what the Episodes scope shows.
music: Option<u32>Artists, albums and tracks together.
Implementations§
Source§impl SearchCounts
impl SearchCounts
Sourcepub fn of(&self, scope: SearchScope) -> Option<u32>
pub fn of(&self, scope: SearchScope) -> Option<u32>
The count for scope.
Trait Implementations§
Source§impl Clone for SearchCounts
impl Clone for SearchCounts
impl Copy for SearchCounts
Source§impl Debug for SearchCounts
impl Debug for SearchCounts
Source§impl Default for SearchCounts
impl Default for SearchCounts
Source§impl<'de> Deserialize<'de> for SearchCounts
impl<'de> Deserialize<'de> for SearchCounts
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SearchCounts
Source§impl PartialEq for SearchCounts
impl PartialEq for SearchCounts
Source§impl Serialize for SearchCounts
impl Serialize for SearchCounts
impl StructuralPartialEq for SearchCounts
Auto Trait Implementations§
impl Forget for SearchCounts
impl Freeze for SearchCounts
impl Move for SearchCounts
impl RefUnwindSafe for SearchCounts
impl Send for SearchCounts
impl Sync for SearchCounts
impl Unpin for SearchCounts
impl UnsafeUnpin for SearchCounts
impl UnwindSafe for SearchCounts
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