pub struct PlaylistSimplified {
pub tracks: Tracks,
pub collaborative: bool,
pub external_urls: HashMap<String, String>,
pub id: String,
pub images: Vec<Image>,
pub name: String,
pub owner: UserSimplified,
pub public: Option<bool>,
pub snapshot_id: String,
pub item_type: TypePlaylist,
}Expand description
A simplified playlist object.
Fields§
§tracks: TracksThe number of tracks in the playlist.
collaborative: boolWhether the owner allows other people to modify the playlist. Always is false from a search context.
external_urls: HashMap<String, String>Known external URLs for this playlist.
id: StringThe Spotify ID for this playlist.
images: Vec<Image>Images for the playlist. It may be empty, or contain up to three images, in descending order of size. The URLs are temporary and will expire in less than a day.
name: StringThe name of the playlist.
owner: UserSimplifiedThe user who owns the playlist. This is a UserPublic
according to the documentation, but in practice it is not.
public: Option<bool>Whether the playlist is public; None if not relevant.
snapshot_id: StringThe version identifier of the playlist.
item_type: TypePlaylistThe item type; playlist.
Trait Implementations§
Source§impl Clone for PlaylistSimplified
impl Clone for PlaylistSimplified
Source§fn clone(&self) -> PlaylistSimplified
fn clone(&self) -> PlaylistSimplified
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlaylistSimplified
impl Debug for PlaylistSimplified
Source§impl<'de> Deserialize<'de> for PlaylistSimplified
impl<'de> Deserialize<'de> for PlaylistSimplified
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
Source§impl From<Playlist> for PlaylistSimplified
impl From<Playlist> for PlaylistSimplified
Source§impl PartialEq for PlaylistSimplified
impl PartialEq for PlaylistSimplified
Source§fn eq(&self, other: &PlaylistSimplified) -> bool
fn eq(&self, other: &PlaylistSimplified) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlaylistSimplified
impl Serialize for PlaylistSimplified
impl Eq for PlaylistSimplified
impl StructuralPartialEq for PlaylistSimplified
Auto Trait Implementations§
impl Freeze for PlaylistSimplified
impl RefUnwindSafe for PlaylistSimplified
impl Send for PlaylistSimplified
impl Sync for PlaylistSimplified
impl Unpin for PlaylistSimplified
impl UnsafeUnpin for PlaylistSimplified
impl UnwindSafe for PlaylistSimplified
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more