pub struct SearchQuery {
pub type: SearchType,
pub page: u32,
pub nocorrect: bool,
pub playlist_in_best: bool,
}Expand description
options for Client::search.
Default gives the api’s own defaults: every entity type, first page,
typo-correction on, playlists eligible as the best match.
Fields§
§type: SearchTypeentity type to search for.
page: u32page index, zero-based.
nocorrect: boolset true to suppress typo correction.
playlist_in_best: boolwhether playlists may appear as the best match.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuery
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