pub struct ArtistQuery {
pub id: Option<String>,
pub id_only: bool,
pub view: ArtistView,
pub market: String,
pub limit: u8,
pub offset: u32,
}Expand description
Query parameters for artist info
Fields§
§id: Option<String>Artist ID or URL (None = now playing artist)
id_only: boolOnly output the ID
view: ArtistViewWhat view/information to retrieve
market: StringMarket for top tracks (ISO country code)
limit: u8Number of results for albums
offset: u32Offset for album pagination
Implementations§
Source§impl ArtistQuery
impl ArtistQuery
Sourcepub fn view(self, view: ArtistView) -> Self
pub fn view(self, view: ArtistView) -> Self
Set the view type
Trait Implementations§
Source§impl Clone for ArtistQuery
impl Clone for ArtistQuery
Source§fn clone(&self) -> ArtistQuery
fn clone(&self) -> ArtistQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 ArtistQuery
impl Debug for ArtistQuery
Auto Trait Implementations§
impl Freeze for ArtistQuery
impl RefUnwindSafe for ArtistQuery
impl Send for ArtistQuery
impl Sync for ArtistQuery
impl Unpin for ArtistQuery
impl UnwindSafe for ArtistQuery
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