pub struct SearchQuery { /* private fields */ }Expand description
Represents a search query builder.
Implementations§
Source§impl SearchQuery
impl SearchQuery
pub fn from_query(query: impl Into<String>) -> Self
pub fn album(self, album: impl Into<String>) -> Self
pub fn artist(self, artist: impl Into<String>) -> Self
pub fn track(self, track: impl Into<String>) -> Self
pub fn year(self, year: u32) -> Self
pub fn years(self, start_year: u32, end_year: u32) -> Self
pub fn irsc(self, irsc: impl Into<String>) -> Self
pub fn genre(self, genre: impl Into<String>) -> Self
pub fn upc(self, upc: impl Into<String>) -> Self
pub fn hipster(self, hipster: bool) -> Self
pub fn new(self, new: bool) -> Self
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchQuery
impl Debug for SearchQuery
Source§impl Default for SearchQuery
impl Default for SearchQuery
Source§fn default() -> SearchQuery
fn default() -> SearchQuery
Returns the “default value” for a type. Read more
Source§impl Display for SearchQuery
impl Display for SearchQuery
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