Struct spotify_api::objects::AlbumObject[][src]

pub struct AlbumObject {
Show 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,
}

Fields

album_type: String

The 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: ExternalIdObject

Known external IDs for the album.

external_urls: ExternalUrlObject

Known 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: String

A link to the Web API endpoint providing full details of the album.

id: String

The Spotify ID for the album.

images: Vec<ImageObject>

The cover art for the album in various sizes, widest first.

label: String

The label for the album.

name: String

The name of the album. In case of an album takedown, the value may be an empty string.

popularity: usize

The 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: String

The 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: String

The precision with which release_date value is known: “year” , “month” , or “day”.

restrictions: AlbumRestrictionObject

Included in the response when a content restriction is applied. See Restriction Object for more details.

tracks: Vec<SimplifiedTrackObject>

The tracks of the album.

_type: String

The object type: “album“

uri: String

The Spotify URI for the album.

Trait Implementations

impl Clone for AlbumObject[src]

fn clone(&self) -> AlbumObject[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AlbumObject[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for AlbumObject[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<AlbumObject> for AlbumObject[src]

fn eq(&self, other: &AlbumObject) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &AlbumObject) -> bool[src]

This method tests for !=.

impl Serialize for AlbumObject[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl Eq for AlbumObject[src]

impl StructuralEq for AlbumObject[src]

impl StructuralPartialEq for AlbumObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]