pub struct Album {Show 20 fields
pub album_type: Option<String>,
pub total_tracks: Option<u32>,
pub available_markets: Option<Vec<String>>,
pub external_urls: Option<ExternalUrls>,
pub href: Option<String>,
pub id: String,
pub images: Option<Vec<Image>>,
pub name: String,
pub release_date: Option<String>,
pub release_date_precision: Option<String>,
pub restrictions: Option<Restrictions>,
pub item_type: String,
pub uri: String,
pub artists: Option<Vec<ArtistSimplified>>,
pub tracks: Option<Paginated<TrackSimplified>>,
pub copyrights: Option<Vec<Copyright>>,
pub external_ids: Option<ExternalIds>,
pub genres: Option<Vec<String>>,
pub label: Option<String>,
pub popularity: Option<u32>,
}Expand description
Full album object.
Fields§
§album_type: Option<String>Album type.
total_tracks: Option<u32>Total number of tracks.
available_markets: Option<Vec<String>>Markets where the album is available.
external_urls: Option<ExternalUrls>External URLs.
href: Option<String>Spotify URL.
id: StringSpotify ID.
images: Option<Vec<Image>>Album cover images.
name: StringAlbum name.
release_date: Option<String>Release date.
release_date_precision: Option<String>Release date precision.
restrictions: Option<Restrictions>Restrictions if any.
item_type: StringObject type.
uri: StringSpotify URI.
artists: Option<Vec<ArtistSimplified>>Artists on the album.
tracks: Option<Paginated<TrackSimplified>>Album tracks (paginated).
copyrights: Option<Vec<Copyright>>Copyright information.
external_ids: Option<ExternalIds>External IDs.
genres: Option<Vec<String>>Genres (may be empty).
label: Option<String>Label name.
popularity: Option<u32>Popularity score (0-100).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Album
impl<'de> Deserialize<'de> for Album
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
Auto Trait Implementations§
impl Freeze for Album
impl RefUnwindSafe for Album
impl Send for Album
impl Sync for Album
impl Unpin for Album
impl UnwindSafe for Album
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