pub struct ArtistObject {
pub external_urls: ExternalUrlObject,
pub followers: Option<FollowersObject>,
pub genres: Option<Vec<String>>,
pub href: String,
pub id: String,
pub images: Vec<ImageObject>,
pub name: String,
pub popularity: usize,
pub _type: String,
pub uri: String,
}
Expand description
Fields§
§external_urls: ExternalUrlObject
Known external URLs for this artist.
followers: Option<FollowersObject>
Information about the followers of the artist.
genres: Option<Vec<String>>
A list of the genres the artist is associated with. For example: "Prog Rock"
, "Post-Grunge"
. (If not yet classified, the array is empty.)
href: String
A link to the Web API endpoint providing full details of the artist.
id: String
The Spotify ID for the artist.
images: Vec<ImageObject>
Images of the artist in various sizes, widest first.
name: String
The name of the artist.
popularity: usize
The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular. The artist’s popularity is calculated from the popularity of all the artist’s tracks.
_type: String
The object type: "artist"
uri: String
The Spotify URI for the artist.
Trait Implementations§
Source§impl Clone for ArtistObject
impl Clone for ArtistObject
Source§fn clone(&self) -> ArtistObject
fn clone(&self) -> ArtistObject
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 ArtistObject
impl Debug for ArtistObject
Source§impl<'de> Deserialize<'de> for ArtistObject
impl<'de> Deserialize<'de> for ArtistObject
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
Source§impl PartialEq for ArtistObject
impl PartialEq for ArtistObject
Source§impl Serialize for ArtistObject
impl Serialize for ArtistObject
impl Eq for ArtistObject
impl StructuralPartialEq for ArtistObject
Auto Trait Implementations§
impl Freeze for ArtistObject
impl RefUnwindSafe for ArtistObject
impl Send for ArtistObject
impl Sync for ArtistObject
impl Unpin for ArtistObject
impl UnwindSafe for ArtistObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.