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]
impl Clone for AlbumObject
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AlbumObject
[src]
impl Debug for AlbumObject
[src]impl<'de> Deserialize<'de> for AlbumObject
[src]
impl<'de> Deserialize<'de> for AlbumObject
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[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]
impl PartialEq<AlbumObject> for AlbumObject
[src]fn eq(&self, other: &AlbumObject) -> bool
[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]
fn ne(&self, other: &AlbumObject) -> bool
[src]This method tests for !=
.
impl Serialize for AlbumObject
[src]
impl Serialize for AlbumObject
[src]impl Eq for AlbumObject
[src]
impl StructuralEq for AlbumObject
[src]
impl StructuralPartialEq for AlbumObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for AlbumObject
impl Send for AlbumObject
impl Sync for AlbumObject
impl Unpin for AlbumObject
impl UnwindSafe for AlbumObject
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[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]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,