Skip to main content

Album

Struct Album 

Source
pub struct Album {
Show 21 fields pub api_path: String, pub comment_count: Option<u32>, pub cover_art_thumbnail_url: Option<String>, pub cover_art_url: String, pub custom_header_image_url: Option<String>, pub full_title: String, pub header_image_url: Option<String>, pub id: u32, pub lock_state: Option<String>, pub name: String, pub name_with_artist: Option<String>, pub pyongs_count: Option<u32>, pub release_date: Option<String>, pub release_date_components: Option<Date>, pub url: String, pub current_user_metadata: Option<UserMetadata>, pub album_pageviews: Option<u32>, pub artist: Artist, pub cover_arts: Option<Vec<CoverArt>>, pub description_annotation: Option<Referent>, pub song_performances: Option<Vec<SongPerformance>>,
}

Fields§

§api_path: String

Path of the API.

§comment_count: Option<u32>

Number of comments.

Only in get_album

§cover_art_thumbnail_url: Option<String>

Cover art thumbnail if the album.

Only with user-core level token

§cover_art_url: String

Cover art of the album.

§custom_header_image_url: Option<String>

Custom header image.

Only in get_album

§full_title: String

Full album title is: “name by author”.

§header_image_url: Option<String>

Header image.

Only in get_album

§id: u32

Id of the album.

§lock_state: Option<String>

Only in get_album

§name: String

Name of the album.

§name_with_artist: Option<String>

Name with artist in {album name} (artist: {artist name})

Only with user-core level token

§pyongs_count: Option<u32>

Number of pyongs in this album.

Only in get_album

§release_date: Option<String>

Release date of the album in ISO 8601 date format.

Only in get_album

§release_date_components: Option<Date>

Release date of the album in struct format Date.

Only in get_album or with user-core level token

§url: String

Url of the album page.

§current_user_metadata: Option<UserMetadata>

Current user metadata have all the permissions of the user to vote, edit etc. and some others stuffs.

Only in get_album

§album_pageviews: Option<u32>

Number of views in the album page.

Only in get_album

§artist: Artist

Album artist.

§cover_arts: Option<Vec<CoverArt>>

All cover arts of the album.

Only in get_album

§description_annotation: Option<Referent>

Annotations in this album.

Only in get_album

§song_performances: Option<Vec<SongPerformance>>

All the people who worked on this album.

Only in get_album

Trait Implementations§

Source§

impl Debug for Album

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Album

Source§

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 Serialize for Album

Source§

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

Serialize this value into the given Serde serializer. 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 UnsafeUnpin for Album

§

impl UnwindSafe for Album

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more