pub struct ChartPlaylist {
pub id: u64,
pub title: String,
pub is_public: bool,
pub link: String,
pub picture: String,
pub picture_small: String,
pub picture_medium: String,
pub picture_big: String,
pub picture_xl: String,
pub position: u64,
pub user: PlaylistUser,
}Expand description
Subset of Playlist.
Use get_full() for the full Playlist.
Fields§
§id: u64The playlist’s Deezer id
title: StringThe playlist’s title
is_public: boolIf the playlist is public or not
link: StringThe url of the playlist on Deezer
picture: StringThe url of the playlist’s cover
picture_small: StringThe url of the playlist’s cover in size small
picture_medium: StringThe url of the playlist’s cover in size medium
picture_big: StringThe url of the playlist’s cover in size big
picture_xl: StringThe url of the playlist’s cover in size xl
position: u64The position of the playlist in the charts
user: PlaylistUserUser object
Implementations§
Source§impl ChartPlaylist
impl ChartPlaylist
Sourcepub async fn get_full(&self) -> Result<Playlist, DeezerError>
pub async fn get_full(&self) -> Result<Playlist, DeezerError>
Returns the full Playlist.
§Panics
Can panic when the playlist api returns 404 - Not Found.
This should never happen as ChartPlaylist references an existing Playlist.
Trait Implementations§
Source§impl Clone for ChartPlaylist
impl Clone for ChartPlaylist
Source§fn clone(&self) -> ChartPlaylist
fn clone(&self) -> ChartPlaylist
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartPlaylist
impl Debug for ChartPlaylist
Source§impl<'de> Deserialize<'de> for ChartPlaylist
impl<'de> Deserialize<'de> for ChartPlaylist
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 ChartPlaylist
impl RefUnwindSafe for ChartPlaylist
impl Send for ChartPlaylist
impl Sync for ChartPlaylist
impl Unpin for ChartPlaylist
impl UnwindSafe for ChartPlaylist
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