pub struct AlbumObject {Show 19 fields
pub album_type: String,
pub artists: Vec<ArtistObject>,
pub available_markets: Vec<String>,
pub copyrights: Vec<CopyrightObject>,
pub external_ids: ExternalIdObject,
pub external_urls: ExternalUrlObject,
pub genres: Vec<String>,
pub href: String,
pub id: String,
pub images: Vec<ImageObject>,
pub label: String,
pub name: String,
pub popularity: usize,
pub release_date: String,
pub release_date_precision: String,
pub restrictions: AlbumRestrictionObject,
pub tracks: Vec<SimplifiedTrackObject>,
pub _type: String,
pub uri: String,
}Expand description
Fields§
§album_type: StringThe type of the album: album, single, or compilation.
artists: Vec<ArtistObject>The artists of the album. Each artist object includes a link in href to more detailed information about the artist.
available_markets: Vec<String>The markets in which the album is available: ISO 3166-1 alpha-2 country codes. Note that an album is considered available in a market when at least 1 of its tracks is available in that market.
copyrights: Vec<CopyrightObject>The copyright statements of the album.
external_ids: ExternalIdObjectKnown external IDs for the album.
external_urls: ExternalUrlObjectKnown external URLs for this album.
genres: Vec<String>A list of the genres used to classify the album. For example: “Prog Rock” , “Post-Grunge”. (If not yet classified, the array is empty.)
href: StringA link to the Web API endpoint providing full details of the album.
id: StringThe Spotify ID for the album.
images: Vec<ImageObject>The cover art for the album in various sizes, widest first.
label: StringThe label for the album.
name: StringThe name of the album. In case of an album takedown, the value may be an empty string.
popularity: usizeThe popularity of the album. The value will be between 0 and 100, with 100 being the most popular. The popularity is calculated from the popularity of the album’s individual tracks.
release_date: StringThe date the album was first released, for example “1981-12-15”. Depending on the precision, it might be shown as “1981” or “1981-12”.
release_date_precision: StringThe precision with which release_date value is known: “year” , “month” , or “day”.
restrictions: AlbumRestrictionObjectIncluded in the response when a content restriction is applied. See Restriction Object for more details.
tracks: Vec<SimplifiedTrackObject>The tracks of the album.
_type: StringThe object type: “album“
uri: StringThe Spotify URI for the album.
Trait Implementations§
Source§impl Clone for AlbumObject
impl Clone for AlbumObject
Source§fn clone(&self) -> AlbumObject
fn clone(&self) -> AlbumObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlbumObject
impl Debug for AlbumObject
Source§impl<'de> Deserialize<'de> for AlbumObject
impl<'de> Deserialize<'de> for AlbumObject
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>,
Source§impl PartialEq for AlbumObject
impl PartialEq for AlbumObject
Source§impl Serialize for AlbumObject
impl Serialize for AlbumObject
impl Eq for AlbumObject
impl StructuralPartialEq for AlbumObject
Auto Trait Implementations§
impl Freeze for AlbumObject
impl RefUnwindSafe for AlbumObject
impl Send for AlbumObject
impl Sync for AlbumObject
impl Unpin for AlbumObject
impl UnwindSafe for AlbumObject
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
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
key and return true if they are equal.