pub struct SearchRequest {
pub query: String,
pub limit: u32,
pub scope: SearchScope,
pub kind: Option<SearchKind>,
pub library: Option<LibraryId>,
}Expand description
A search. On the wire, {"type": "search", "query": …, "scope": …}.
Fields§
§query: StringWhat was typed. A year at its end (“dune 2021”) narrows the search to that year and is not itself searched for; the reply says which year it took.
limit: u32The most items (or people) a group holds.
scope: SearchScope§kind: Option<SearchKind>One group only, for “See all”: up to limit of its items and no
top match. It overrides scope, since people, artists, albums and
tracks have no scope of their own.
library: Option<LibraryId>Only this library’s items, and the people found in it, each with
their count there. A person’s items (PersonItems) are still all
of theirs.
Trait Implementations§
Source§impl Clone for SearchRequest
impl Clone for SearchRequest
Source§impl Debug for SearchRequest
impl Debug for SearchRequest
Source§impl<'de> Deserialize<'de> for SearchRequest
impl<'de> Deserialize<'de> for SearchRequest
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 SearchRequest
Source§impl PartialEq for SearchRequest
impl PartialEq for SearchRequest
Source§impl Serialize for SearchRequest
impl Serialize for SearchRequest
impl StructuralPartialEq for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnsafeUnpin for SearchRequest
impl UnwindSafe for SearchRequest
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